SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    May 2010
    Posts
    228
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    dropdown menu issues

    if you look at the source code of this site this site there should be a dropdown list of offices below the Contact Us button in the top nav. however i cant get them to appear. i realize that I have a display:none on the .sub-menu if you use firebug, you'll notice that when you take that off, the items do appear, but not in the form of a dropdown.

    so how do i get them to appear direction below Contact Us when someone hovers over Contact Us.

    to give some background, this is a wordpress theme that was built before 3.0 so i've had to do tinkering to get wordpress 3.0 menus to appear, but obviously not formatted correctly.

    please advise. thanks in advance!

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,107
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi sixfran,

    You're almost there. If you set position: relative; on the top level li's then any other positioned child elements will be relative to that.
    Code css:
    #menu li { position: relative }
    .sub-menu {
        right: 0;
        top: 15px;
    }

    All the best,

  3. #3
    SitePoint Addict
    Join Date
    May 2010
    Posts
    228
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    that worked. thank you!


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
  •