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.

Sharpen your pencil<br />

Solution<br />

.center {<br />

text-align: center;<br />

}<br />

.right {<br />

text-align: right;<br />

}<br />

<br />

The cities I visited on my Segway’n USA travels<br />

<br />

City<br />

Date<br />

Temperature<br />

Altitude<br />

Population<br />

Diner Rating<br />

<br />

<br />

Walla Walla, WA<br />

June 15th<br />

75<br />

1,204 ft<br />

29,686<br />

4/5<br />

<br />

<br />

Magic City, ID<br />

June 25th<br />

74<br />

5,312 ft<br />

50<br />

3/5<br />

<br />

.<br />

.<br />

.<br />

<br />

Exercise<br />

And here you just add<br />

each to the<br />

appropriate class!<br />

Here are the two classes,<br />

one for center and one<br />

for right alignment.<br />

To create alternating colors in the Magic City, Last Chance, and<br />

Why table rows, you just add the class=”cellcolor” attribute to the<br />

opening tag in these rows, like this:<br />

Solution <br />

Magic City, ID<br />

...<br />

<br />

tables and more lists<br />

you are here 587

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

Saved successfully!

Ooh no, something went wrong!