PDA

View Full Version : Layered CCS StyleSheets / how do I / Heeeelp:)



jmf
12 Jun 2011, 05:49 AM
Hi All

I have a background image which I need to expand with the browser, I have achieved this by putting it in a div and then configuring it via ccs however, NOW, I need to configure my content divs however I want them to be above the background div. I will then transparent the upper layer. Ive used z-index for positioning however I must be missing something as my new content div ends up being after the background div instead of on top of it. If anyone can assist in how I overlay one div with another, it would be greatly appreciated .. desperate:)!!! thanks
--jmf

Wickham
12 Jun 2011, 11:06 AM
z-index always needs either position: relative; or position: absolute; to work.

Add position to the style for the div with the image and add a z-index: -1; to place it behind everything else (and you may need to add a high z-index with a position to the content div).