im making a tab'd menu on top of a table, but in IE, the tabs are actually UNDER the table. In firefox, they are displayed correctly, ABOVE the table. Any ideas on a fix?
You may now need to re-state padding and margin for elements now 'zero-d' of their browser-specific default margin/padding. Even if this doesn't solve this problem, this is still invaluable and should be retained and used.
It appears that you do have things 'zero-ed' out, but there may be items that still have padding &/or margin, like text, etc.
yeah, i have allready messed with some similar stuff, but have since slimmed down the css as much as possible to make sure i wasnt doing anything stupid. btw, no fix, still looking for some help
is that 600 pt, px, in, cm, em, ex, mi, km, ft.. (etc). Browser might default to expected "px", -but don't count on it...
(Several instances of this... not stating value-unit. The only 'value' that can be without a unit-of-measure is "0", because zero-inches = zero-px = zero-feet = (ect..)
hehe, thought IE defaulted to px anyway, but i went ahead and added px to all values. Btw, to clarify here, the issue is that IE is not displaying correctly, and FF is, yeah, kinda backward. There is a layering going on here, that doesnt quite make sense. I have tried to solve it with layers, but then I just run into placement issues between the browsers instead. Also, no fix from the units.
<script>
function tabular(num)
{
var tabids = document.getElementById("tabs").getElementsByTagName('A');
for (var x = 0; x < tabids.length; x++)
{tabids[x].className = "";}
tabids[num-1].className = "current";
}
</script>
making them look the same is doable ofcourse, I am trying to achieve a desired effect in both though. The selected tab should be 1 pixel lower than the rest, and it should be overlapping the table's top border, while the other tabs do not. Again, the issue comes about from the tabs going litterally underneath the table in IE, but in FF, they overlap it correctly.
quick screen shot of what i am trying to achieve, this is a cut from Firefox, which displays correctly w/o messing around, I can also make IE look this way, though, it stops looking correctly in FF due to layer alignments.
ul.tabs li a.current {background:white url(tabbg.gif) 0 -2px repeat-x; position:relative;}
you need a default background-color. I do not have the URL to your 'background-image' called "tabbg.gif" so obviosly am seeing something different. A default-stated background-color covers the overlap 'bottom border' of the UL.
using:
ul.tabs li a.current {background:white url(tabbg.gif) 0 -2px repeat-x; position:relative;}
.... Something tells me you are using IE7 .... i copied your earlier code then added "white" to the background calls and I do not see the same thing in IE6 and firefox. >.< MS H8
PS. the bg image really shouldnt matter. afterall, it IS a background. The element itself (of height: 20px) should be covering small part of the top border of the table when the element becomes lowered by 1px. This effect does show true in Firefox, though in IE5 and IE6, it would seem that the "tab" element simply goes behind the table, rather than atop.
Last edited by Spikeddragon; 05-17-2007 at 03:59 PM.
OMG!!!!!!!!! I really should add more "!"
I love you joel, no joke, Ima dood, but you solved my issue with a simple css statement and you didnt even realize it!
Bookmarks