Advanced Search

Results 1 to 2 of 2

Thread: Layering CSS?

  1. #1
    Join Date
    Nov 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Layering CSS?

    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/cs...image-gallery/



    the other is this toolbar http://www.dynamicdrive.com/dynamici...smoothmenu.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

  2. #2
    Join Date
    Sep 2008
    Location
    Bristol - UK
    Posts
    842
    Thanks
    32
    Thanked 132 Times in 131 Posts

    Default

    Without seeing the site, just ensure that the elements on which you're using a z-index value have a position too. So

    Code:
    #top{
    position:relative;
    z-index:10;
    }
    
    #bottom{
    position:absolute;
    z-index:1;
    }
    They must have this or z-index will not work.

Bookmarks

Posting Permissions

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