I have a block that is floating centered in the browser. Inside that block there are other blocks. The problem is that I can't get the blocks to stack.
So it looks like this:
But I want the inner blocks (X's) to be on top of each other instead. Since the main window is floating I can't do absolute position because it keeps placing the inner blocks outside of the main block.
Here's the stylesheet:
HTML:
So it looks like this:
Code:
__ | X | | X | ----
Here's the stylesheet:
Code:
div.body {display: block; float: right; top: 0px; left: 105px; width: 570px; height: 330px; border-style: solid; border-color: red; border-width: 1px;} div.maindisplay {display: block; float: left; top: 0px; left: 0px; width: 569px; height: 329px; border-style: dashed; border-color: yellow; border-width: 1px; visibility: hidden;}
PHP Code:
<div class="body">
<div class="maindisplay" id="headquarters">
Pacific Northwest SAL Division
</div>
<div class="maindisplay" id="travelChoice">
Willamette-Puget Trough<br />
Great Basin<br />
Coast Range<br />
Cascade Mountains<br />
</div>
<div class="maindisplay" id="mugshots">
<i>Sceloporus occidentalis</i> |
<i>Pitouphis catenifer</i> |
<i>Taricha granulosa</i>
</div>
</div>
Comment