I have this HTML & CSS and the 'overflow: hidden' tag is not working in firefox. This is stumping me... anyone know why it's not working? Is it just because overflow tag isn't support on the A tag?
#page_sidebar_tabs A {
float: left;
border: 1px solid #0F0;
display: block;
line-height: normal;
padding-top: 18px !important;
height: 18px !important;
overflow: hidden !important;
border-bottom: 2px solid #EEB31D;
}
#page_sidebar_tabs A:hover, .sidebar_active_tab {
background-position: 0 -18px !important;
}
a#sidebar1 {
background: url(../sidebar/tab1.gif) top left transparent no-repeat;
width: 76px;
}
a#sidebar2 {
background: url(../sidebar/tab2.gif) top left transparent no-repeat;
width: 55px;
}
a#sidebar3 {
background: url(../sidebar/tab3.gif) top left transparent no-repeat;
width: 55px;
}
HTML:
<div id="page_sidebar_tabs">
<a href="#" id="sidebar1" onClick="return SidebarTabOnClick('1');">ABC</a>
<a href="#" id="sidebar2" onClick="return SidebarTabOnClick('2');">DEF</a>
<a href="#" id="sidebar3" onClick="return SidebarTabOnClick('3');">GHI</a>
</div>
EDIT:
i just wanted to update/clarify:
This is to implement CSS rollovers, the A block is supposed to be 18px high, the background image is 36 px high, and the rollover would push up/down the background image to achieve the roll over.
The text in in place to gracefully (hopefully) degrade if they don't have CSS or whatever. the padding-top ideally pushed the text BELOW the visible block of the A tag, hence the overflow hidden.
The overflow should hide the text that is vertically pushed down (leaving only the background image visible), however, it's still showing in firefox.