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.

We can use a<br />

descendant selector to<br />

select just the nested<br />

table header. Here’s<br />

how you can do that:<br />

brain<br />

Barbell<br />

tables and more lists<br />

It’s time to fall back on all that training you’ve done. What you need to do is<br />

change the table heading background color just for Tony and Tess, and do it<br />

<strong>with</strong>out changing the background of the main table headings. How? You need<br />

to find a selector that selects only the nested table headings.<br />

(1) Start by selecting<br />

the outer table...<br />

(1) (2) (3)<br />

table table th<br />

}<br />

(2) Then select the<br />

inner table...<br />

(3) Then select the<br />

table heading.<br />

{<br />

background-color: white;<br />

Exercise<br />

Solutions<br />

you are here 589

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

Saved successfully!

Ooh no, something went wrong!