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.

146<br />

Setting the width of the columns<br />

Next, I position the columns using floats. First, I float #c1<br />

and #c2 left, and #c3 right.<br />

#c1 {<br />

float: left;<br />

width: 250px;<br />

}<br />

#c2 {<br />

float: left;<br />

width: 250px;<br />

}<br />

#c3 {<br />

float: right;<br />

width: 250px;<br />

}<br />

Figure 6-15. The three columns<br />

This positions the columns over the grid marks of the<br />

background image. To make sure, I add different shades of<br />

gray as a background color to each div (see Figure 6-15).<br />

#c1 {<br />

float: left;<br />

width: 250px;<br />

background: #eee;<br />

}<br />

#c2 {<br />

float: left;<br />

width: 250px;<br />

background: #ccc;<br />

}<br />

#c3 {<br />

float: right;<br />

width: 250px;<br />

background: #999;<br />

}

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

Saved successfully!

Ooh no, something went wrong!