Log in

View Full Version : Layering CSS?



keastie
11-19-2009, 11:57 AM
Hi Guys,



I'm designing a site for the Junior School that I work in, I am using 2 pieces of CSS that I've found, one is this image viewer http://www.dynamicdrive.com/style/csslibrary/item/css-image-gallery/



the other is this toolbar http://www.dynamicdrive.com/dynamicindex1/ddsmoothmenu.htm



I have them both on the same page, but the toolbar is always ontop of the Image when it expands! I have attempted to change/add Z-indexs but with no luck. Help!



George

Schmoopy
11-19-2009, 02:39 PM
Without seeing the site, just ensure that the elements on which you're using a z-index value have a position too. So


#top{
position:relative;
z-index:10;
}

#bottom{
position:absolute;
z-index:1;
}

They must have this or z-index will not work.