+ Reply to Thread
Results 1 to 2 of 2

Thread: [CSS] Dropdown menu issues.

  1. #1
    Shadow121's Avatar
    Shadow121 is offline x10 Lieutenant Shadow121 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    Centerville
    Posts
    448

    [CSS] Dropdown menu issues.

    I have a #nav and .submenu CSS property. The subnav is taking from the nav and displaying horizontal with the hover and all that happy stuff. I want to make it go back to up/down like normal.

    Here is the CSS:
    Code:
    #nav {
    margin:37px 0 0 0;
    }
    
    #nav li {
    list-style:none;
    float:left;
    padding:11px 7px 9px;
    }
    
    #nav li a {
    padding:11px 7px 6px;
    font:12px Georgia;
    color:#ccc;
    font-weight:bold;
    text-decoration:none;
    }
    
    #nav li a:hover {
    background:url(../images/nav_a.gif) bottom no-repeat;
    color:#fff;
    }
    
    #nav .subnav{
        display: none;
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    
    #nav .subnav li{
        position: relative;
    }
    #nav .subnav li ul{
        position: absolute;
        left: 0;
        top: 0;
    }
    #nav .subnav li a{
        display: block;
        width: auto;
        padding: 5px 0;
        padding-left: 10px;
    }

  2. #2
    peterac is offline x10Hosting Member peterac is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    24

    Re: [CSS] Dropdown menu issues.

    Shadow21, try
    #nav .subnav li{
    position: relative;
    display: block;
    }
    also
    #nav .subnav li ul{
    position: absolute;
    left: 0;
    top: 0;
    }
    will give position of sub menu off the subnav perhaps
    #nav li ul{
    position: absolute;
    left: 0;
    top: 0;
    }
    should set the position of .subnav
    Hope this is of assistance
    peter

+ Reply to Thread

Similar Threads

  1. CSS DropDown Nav Help
    By diabolo in forum Programming Help
    Replies: 2
    Last Post: 06-25-2009, 12:46 PM
  2. Disable/Enable dropdown menu onChange
    By driveflexfuel in forum Programming Help
    Replies: 2
    Last Post: 12-03-2008, 12:08 PM
  3. [REQ 800 credits] Fix css horizontal dropdown menu in IE7
    By jjwinter in forum The Marketplace
    Replies: 10
    Last Post: 11-07-2008, 12:14 AM
  4. cPanel issues and Joomla File Manager issues
    By monkey050 in forum Scripts & 3rd Party Apps
    Replies: 8
    Last Post: 05-22-2008, 03:14 PM
  5. CGI search form - Searching multiple tables via dropdown
    By dwd2000 in forum Programming Help
    Replies: 0
    Last Post: 02-19-2008, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers