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.

100<br />

Well, maybe you’re not quite finished yet. Preview the result in your browser, and you will see that the logo has not fallen<br />

into the position just above the footer, as you might have expected. Instead, it has been positioned 50px above the body element,<br />

as this is its closest positioned ancestor, as seen at the top of Figure 4-9.<br />

You can easily remedy this. Make the site information division itself a positioning context by applying position : relative;<br />

but no offsets.<br />

div[id="siteinfo"] {<br />

position : relative; }<br />

Figure 4-9. Correcting the position of the footer logo. Call me old-fashioned, but I think it looks better at the bottom.

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

Saved successfully!

Ooh no, something went wrong!