html - Background color and image are colliding. -
ok clear first time i've used site before sorry if i'm not posting entirely correct.
ok i'm doing assignment , here instructor after "update alternate css file to: - use italics footer text - use background image configured body - use solid background color paragraphs content more readable on background image." basic html class , we're learning how put in images. background color headings , paragraphs covering background image , not sure how fix given have learned @ point can provide appreciated.
html: <!doctype html> <html lang="en"> <head> <title>two tickets please</title> <meta charset="utf-8"> <link rel="stylesheet" href="style-alt.css"> </head> <body> <header> <h1>shane’s travel fan page</h1> </header> <hr> <main> <h2>why not take staycation?</h2> <p>first of let me staycations can great way spend little time off, <br> find being away home more liking. can argue definition every time <br> go work or school traveling big deal? while technically <br> travel mechanical, souless, unless of course pass great scenery every day example <br> if lived in duluth. travel great way step away familiar, meet new people , learn more <br> yourself. if can find time away whether locally, across country, or across world, <br> take chance , make memories. know more? check out: <a href="http://www.budgettravel.com"><span class="hyper">budgettravel.com</span></a> </p> <h2>where have been?</h2> <p>these memorable destinations:</p> <ul> <li class="destination"><strong>arizona</strong></li> <li class="destination"><strong>hawaii</strong></li> <li class="destination"><strong>japan</strong></li> <li class="destination"><strong>malayasia</strong></li> <li class="destination"><strong>mexico</strong></li> <li class="destination"><strong>thailand</strong></li> <li class="destination"><strong>the philippines</strong></li> <li class="destination"><strong>singapore</strong></li> </ul> <p id="new">while love traveling through us, international travel has been number 1 in mind, plus met wife abroad little biased. if interested in travel , want discuss email @ bottom of page. happy trails!</p> </main> <footer> <a href="mailto:shanelamb@lamb.com"><small>email:shanelamb@lamb.com</small></a> <br> <br> <small>copyright © 2016 shane lamb</small> </footer> </body> </html> css: body { background-color: #f0ffff; color: #5b5b5b; background-image: url(river.jpg); background-position: right; background-repeat: no-repeat; font-family: verdana, arial, sans-serif; } h1 { background-color: #43cd80; color: #000000; "times new roman", georgia, serif;} h2 { background-color: #bdfcc9; font-family: georgia, "times new roman", serif;} p {background-color: #ccffff;} footer { font-style: italic; font-size: .75em; text-align: left;} ul { list-style-type: circle;} .hyper { font-weight: bold; font-size: 120%; .destination { color: #b8860b;} #new { color: #ff8c00}
i think didn't understand question right - understand teacher's request - paragraphs should cover background image can read paragraph content more easily. (correct me if im wrong)
if want make paragraph background color half transparent can use rgba() color. -
p { background-color: rgba(204, 255, 255, 0.7); color: black; } in rgba(r,g,b,a) - parameters -
- r - how red shades (0-255)
- g - how green shades (0-255)
- b - how blue shades (0-255)
- a - opacity in precents (0-1)
here live example - https://jsfiddle.net/g0kq073v/
Comments
Post a Comment