page:
<div id="mainrow" class="tab1">
<a href="#" onclick="toggleRow('live')" ondblclick="location.href='link1.htm';">Live
Sound</a> |
<a href="#" onclick="toggleRow('recording')"
ondblclick="location.href='link1.htm';">Recording</a> |
<a href="#" onclick="toggleRow('guitars')"
ondblclick="location.href='link1.htm';">Guitars</a> |
<a href="#" onclick="toggleRow('basses')"
ondblclick="location.href='link2.htm';">Basses</a> |
<a href="#" onclick="toggleRow('drums')"
ondblclick="location.href='link3.htm';">Drums</a> |
<a href="#" onclick="toggleRow('keyboards')"
ondblclick="location.href='link1.htm';">Keyboards</a> |
<a href="#" onclick="toggleRow('dj')" ondblclick="location.href='link1.htm';">DJ
Gear</a> |
<a href="#" onclick="toggleRow('lighting')"
ondblclick="location.href='link1.htm';">Lighting</a> |
<a href="#" onclick="toggleRow('accessories')"
ondblclick="location.href='link1.htm';">Accessories</a> |
<a href="#" onclick="toggleRow('books')"
ondblclick="location.href='link1.htm';">Books & DVDs</a>
</div>
<!-- Rows -->
<div id="blank" style="display: block;" class="tab2"><p class="tab3">The on-click
link to the right will trigger how this menu operates. In on-click mode, click once
to pull up the sub-menu or double click to go to the categories page.</p></div>
<div id="live" class="tab2"> Mix Boards | Sub link 2 | Sub link 3 </div>
<div id="recording" class="tab2"> Recording Software | Sub link 2 | Sub link 3 </div>
<div id="guitars" class="tab2"> Electric Guitars | Sub link 2 | Sub link 3 </div>
<div id="basses" class="tab2"> Electric Basses| Sub link 2 | Sub link 3 </div>
<div id="drums" class="tab2"> Acoustic Drums | Sub link 2 | Sub link 3 </div>
<div id="keyboards" class="tab2"> Keyboards | Sub link 2 | Sub link 3 </div>
<div id="dj" class="tab2"> Turntables | Sub link 2 | Sub link 3 </div>
<div id="lighting" class="tab2"> Fixtures | Sub link 2 | Sub link 3 </div>
<div id="accessories" class="tab2"> Cables| Sub link 2 | Sub link 3 </div>
<div id="books" class="tab2"> Sheet Music | Sub link 2 | Sub link 3 </div>
css
.tab2{
background-color: #088A08;
color: #FFFFFF;
width: 1000px;
height: 22px;
display: none;
}
.tab3{
text-align: center;
margin-top: 5px;
font-size: 11px;
height: 12px;
}
Why is the second bar reacting the way it is? Logic tells me that tab3, should float the text down 5 pixels while not affecting tab2 at all. But whenever I do margin-top in tab3 it creates a space between the top bar (tab1) and bottom bar (tab2). Tried a <div> in place of the <p>, even tried <span> all do the samething.
Reacts the way I thought it would in IE7, but every other browser, FF, Chrome, IE8 all react as if I put a margin-top: in the css of tab2.


Help


Promote to Article















