WEB CSS Help?

Discussion in 'OT Technology' started by Fearan, Dec 23, 2008.

  1. Fearan

    Fearan Guest

    Hi,
    I'm making a site at
    http://rmr.globul.us/index.php
    and wondering if anyone could help me figure out why my horizontal sub-menus appears below the other DIVs.
    I've tried using z-index and position:relative on the menu's CSS to no avail.

    Any help would be awesome. Thanks. :x:
     
  2. Ender0910

    Ender0910 woot!

    Joined:
    Jun 1, 2004
    Messages:
    3,039
    Likes Received:
    0
    Location:
    Redmond/Bay Area
    where are you setting z-index? I glanced at it through firebug and can't find the z-index settings.
     
  3. Fearan

    Fearan Guest

    I tried messing around with it everywhere.
     
  4. Insert Tokens

    Insert Tokens Making Cancer My Bitch OT Supporter

    Joined:
    Jan 12, 2006
    Messages:
    8,313
    Likes Received:
    69
    Location:
    Tasmania
    Easiest way to fix dropdowns going under your divs is to make a wrapper for the header (including navbar) of your site with z-index 2, and another wrapper around your content with z-index 1.

    Fixed the exact same problem for me.

    Eg:

    #header {
    position: relative;
    z-index: 2
    }

    #content {
    position: relative;
    z-index: 1
    }
     

Share This Page