13.02.2013 Views

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

WEB STANDARDS CREATIVITY

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

60<br />

For more information about hasLayout, read Ingo Chao’s excellent article on the topic: www.satzansatz.de/<br />

cssd/onhavinglayout.html. Of course, doing so is likely to make your eyes cross and/or your hair fall out, so<br />

maybe it’s best if you take the whole thing on faith.<br />

To trigger hasLayout in older versions of IE/Windows, let’s add the following rule to our patches-win.iex.css file:<br />

#content-layout {<br />

height: 1%;<br />

}<br />

And finally, let’s crack open our patches-mac.ie5.css file and add this:<br />

#content-layout {<br />

display: inline-table;<br />

}<br />

As the French designers say, le voilà—Figure 3-6 shows us that our floats have once again been contained, and our borders<br />

are standing strong, gray, and proud.<br />

Figure 3-6. With some clearing implemented, our border’s back again.<br />

I never said I was good at this whole “metaphor” thing. Moving along.<br />

Getting column-tastic (finally)<br />

Now that our container is back on track, all we need to do to create our two-column effect is to apply the appropriate<br />

margins to our divs: a negative right margin to content-primary-wrap and a right margin to content-primary. The values<br />

used in these margins should be equal to, or larger than, the width of content-secondary, which we’ll now set.

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

Saved successfully!

Ooh no, something went wrong!