...

View Full Version : Putting a DIV on the very top



bfinke
12-04-2009, 12:31 PM
abcde.com

You'll notice that the News rollover in the upper left hand corner, if you roll over it, that it is behind the slideshow in the middle of the screen.

How do you go about "layering" divs? I want the News item to go on the top most layer, above the slideshow.

Thanks for any help.

Rowsdower!
12-04-2009, 03:04 PM
Try adding z-index:0; to #index #promo-content.

That worked for me in FF.

bfinke
12-05-2009, 07:21 PM
Hm, that didn't work, though I kept the change so you can see how it looks... any other ideas?

bfinke
12-06-2009, 12:04 AM
anyone?

Excavator
12-06-2009, 01:08 AM
Hm, that didn't work, though I kept the change so you can see how it looks... any other ideas?

I see no z-index on #promo-content.
It's working in FF3.5
IE8 works somewhat once z-index:0; is added
IE7 seems to work fine.
I don't have IE6 but ... :rolleyes:

Electricspace
12-06-2009, 01:17 AM
hi,

Rowsdower's suggestion works in my Firefox and IE8 too. So in what browser are you testing the website?

maybe it would help to do the suggestion of Rowsdower and a bit more:

#promo-content {
z-index: 0
}
#header {
z-index: 100
}

In general: you're using a lot of position absolute and relative. That should not be a problem, but it can really complicate things.

bfinke
12-06-2009, 03:55 AM
That worked! Thanks guys.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum