Hmmm...are you sure you want divs? Maybe you want an unordered list something like this:
HTML Code:
<div id="parent">
<ul>
<li class="blockOne"> </li>
<li class="blockTwo"> </li>
<li class="blockThree"> </li>
</div>
And then you could have your stylesheet something like this:
Code:
#parent li { list-style: none; display: block; float: left; width: 45%; height: 95%; border: 1px solid #000;}
You might need to play around with the value of width to keep the blocks from wrapping. The border is just there so you can see the blocks.
Alternatively, if you do need to use divs, then just style them all the same:
HTML Code:
<div id="parent">
<div class="innerOne"> </div>
<div class="innerTwo"> </div>
<div class="innerThree"> </div>
</div>
Code:
#parent div { float: left; width: 45%; height: 95%; border: 1px solid #000; }
Bookmarks