Page 1 of 1

position: relative

Posted: Sat Nov 12, 2005 1:25 pm
by alex.barylski
I have an SPAN which follows immediately after an IMG tag...

Both are inside a TD

What I want to do is display the SPAN over the IMAGE

I've tried using position: relative inside the TD container and setting the SPAN as position: absolute

And in IE...both the SPAN and IMG are placed at X = Y = 0 relative to the TD - the desired result!!!

However in FF (of course) the SPAN is rendered atthe top of the browser window...

WTF???

Anyone know a way I can get both rendering the way I expected it to??? But in FF????

Thanks :)

Posted: Sat Nov 12, 2005 1:59 pm
by foobar
For the span:

Code: Select all

z-index: 100; /* any value above the z-index for your image, default 0 */