13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

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.

148<br />

Figure 6-16 shows the masthead in the layout.<br />

Figure 6-16. Adding the masthead. The layout is really taking shape now.<br />

Styling the accessibility and services menus<br />

I treat the lists in the accessibility and services menus in the same way as with the languages menu. I float the elements<br />

left, and give them padding and a list-style of none:<br />

#accessibility {<br />

float: left;<br />

list-style:none;<br />

padding-top: 15px;<br />

}<br />

#accessibility li {<br />

float: left;<br />

padding: 0 1em 0 1em;<br />

border-right: 1px solid #ccc;<br />

}<br />

#services {<br />

float: right;<br />

list-style:none;<br />

padding-top: 15px;<br />

}<br />

#services li {<br />

float: left;<br />

padding: 0 1em 0 1em;<br />

border-right: 1px solid #ccc;<br />

}<br />

I’ve also added some padding to the top of these lists. Again, note that this is fixed padding given in pixels. I don’t want this<br />

value to change when the text is resized.

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

Saved successfully!

Ooh no, something went wrong!