ok. I had relative positioning on my parent td#wrapper - but it had no effect, so i removed it to simplify my code. #bottom-box is not aligning with #top-box.
(I hope you realise I am very appreciative that you are going through this with me - as I really want to understand.)
So to clarify my understanding:
A Sibling:
<div id="sibling-1"></div>
<div id="sibling-2"></div>
A Parent:
<div id="parent">
<div id="child"></div>
</div>
And from what I understand, what I am lacking from my code I provided above, is positioning (relative or absolute), and absolute positioning, placed on #top-box and #bottom-box, correct?
Here is my latest code:
#wrapper{
position:relative;
background-color:#DDDDDD;
width:40px;
}
#top-box{
position:absolute;
top:0px;
width:40px;
height:40px;
border:solid 1px #ff0000;
}
#bottom-box{
position:absolute;
bottom:0px;
width:40px;
height:40px;
border:solid 1px #00ff00;
}
<table>
<tr>
<td id="wrapper">
<div id="top-box">top</div>
<div id="bottom-box">btm</div>
</td>
<td>
content<br />content<br />content<br />
content<br />content<br />content<br />
content<br />content<br />content<br />
content<br />content<br />content<br />
</td>
</tr>
</table>
Current results has #top-box breaking out of the td#wrapper at the top of the browser window, and #bottom-box at the very bottom of my browser window.
Take a look:
Thanks again.