For the sake of argument, I'm just going to assume they all have the same background:
CSS
div.cell { width: 200px; float:left; }
.clear { clear:both; }
HTML
<div class=\"cell\">This is box 1!</div> <div class=\"cell\">Each of these boxes can have as much text/content in it as you want without it affecting the divs below. It will now simply push the divs down.</div> <div class=\"cell\">This is box 3!</div>
<div class=\"clear\"></div>
<div class=\"cell\">This is box 4!</div> <div class=\"cell\">This is box 5!</div> <div class=\"cell\">This is box 6!</div>
<div class=\"clear\"></div>
<div class=\"cell\">This is box 7!</div> <div class=\"cell\">This is box 8!</div> <div class=\"cell\">This is box 9!</div>
<div class=\"cell\">This is box 1!</div> <div class=\"cell\">Each of these boxes can have as much text/content in it as you want without it affecting the divs below. It will now simply push the divs down.</div> <div class=\"cell\">This is box 3!</div>
<div class=\"clear\"></div>
<div class=\"cell\">This is box 4!</div> <div class=\"cell\">This is box 5!</div> <div class=\"cell\">This is box 6!</div>
<div class=\"clear\"></div>
<div class=\"cell\">This is box 7!</div> <div class=\"cell\">This is box 8!</div> <div class=\"cell\">This is box 9!</div>
TopLeft, Top, TopRight
Left, Middle, Right
BottomLeft, Bottom, BottomRight
I have a basic setup of divs.. but if Middle has more then one line of text the layout gets fucked up...
How can i fix this?
Html:
Css:
CSS
div.cell {
width: 200px;
float:left;
}
.clear {
clear:both;
}
HTML
HTML
haha yes, yes it was