I have three div's. Div 3 is inside Div 2; Div 2 is inside Div 1. Each div has a width 2 pixels less than the previous div, which will appear to create a double border around div 3.
The problem is Firefox is ignoring margin-bottom for Div 2 and I'm not getting the red border to show up at the bottom. Works fine in IE6 and up. Code below.
#top_nav {
position: relative;
margin: 0 auto;
background-color: #666666;
width: 280px;
float:left;
text-align: center;
}
#top_nav2 {
position: relative;
background-color: #ff0000;
width: 278px;
margin: 0 auto;
margin-bottom: 1px;
text-align: center;
}
#top_nav3 {
position: relative;
background-color: #00ff00;
width: 276px;
margin: 0 auto;
margin-bottom: 1px;
}
<div id="top_nav">
<div id="top_nav2">
<div id="top_nav3">
this<br>is<br>a<br>test
</div>
</div>
</div>