04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Cruising <strong>with</strong> style: the test drive<br />

Go ahead and make all the changes from the last couple of<br />

pages to your “lounge.html” file in the “chapter8/lounge” folder,<br />

save, and reload the page in your browser. You’ll see that the<br />

paragraph text color has changed to maroon:<br />

Here’s our<br />

new maroon<br />

paragraph text.<br />

? brain<br />

power<br />

Instead of setting the color, what if you set background-color of<br />

the elements to maroon instead? How would it change the way<br />

the browser displays the page?<br />

getting started <strong>with</strong> css<br />

Everything else is<br />

as it should be: the<br />

headings are still black,<br />

because all we selected<br />

to style were the <br />

elements.<br />

Notice that the color of<br />

the links didn’t change.<br />

Keep that in the back of<br />

your mind...<br />

you are here 293

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!