Results 1 to 2 of 2

Thread: Layered CCS StyleSheets / how do I / Heeeelp:)

  1. #1
    jmf is offline New Member: Posts Will Be Moderated
    Join Date
    Jun 2011
    Posts
    1

    Layered CCS StyleSheets / how do I / Heeeelp:)

    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

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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).
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. Quicktime movie covering layered image
    By lnv06 in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 12 May 2006, 05:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •