04.06.2013 Views

Head First HTML with CSS

Head First HTML with CSS

Head First HTML with CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

To three-columns and beyond...<br />

While we’ve spent this chapter looking at two-column layouts, the real goal was to learn<br />

about the float and clear properties, along <strong>with</strong> the various forms of positioning that<br />

<strong>CSS</strong> offers. Now that you’ve got the basics down, you’re in a good position to think about<br />

three-column layouts, or any other layout you might desire. So, that’s it, the chapter’s over.<br />

But, wait! Before we finish it off, let’s just think through how a three-column layout might<br />

work (and if you want to give it a try, just look in the “chapter12/threecolumn” folder).<br />

This is<br />

floated left.<br />

The content area<br />

now has left and<br />

right margins that<br />

sit under the two<br />

floated s.<br />

This design is built using techniques that you already understand. To explore<br />

beyond what you’ve done here, it really does help to see how others have used<br />

<strong>CSS</strong> to create interesting designs, and we encourage you to get out there and look<br />

around. Check out some of our favorite online resources for <strong>CSS</strong> design at:<br />

http://headfirstlabs.com/books/hfhtml/chapter12/cssdesign.html<br />

layout and positioning<br />

And this is<br />

floated right.<br />

And the footer has<br />

its clear property<br />

set to “both”.<br />

you are here 541

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

Saved successfully!

Ooh no, something went wrong!