Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    411
    Thanks
    119
    Thanked 0 Times in 0 Posts

    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
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,739
    Thanks
    22
    Thanked 1,836 Times in 1,820 Posts
    Hello sixrfan,
    You are not being specific enough in your CSS. You need to style the dropped ul differently than the ul menu the user sees before he mouses over anything.

    I didn't look very hard for a hover attribute that changes your .sub-menu from display: none; to block or something visible. Your use of !important would likely override it anyway.

    You use absolute positioning .sub-menu but you don't position it.
    Your CSS has
    Code:
    #menu li {
    /...
        display: inline;
    .../
    This makes all li's inline, even though you don't want your ul li ul li inline.



    Look at this simple CSS only dropdown menu for ideas.
    Last edited by Excavator; 11-14-2012 at 12:52 AM. Reason: re-arranged a sentence
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    sixrfan (11-14-2012)

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Posts
    411
    Thanks
    119
    Thanked 0 Times in 0 Posts
    got it. thanks!


  •  

    Posting Permissions

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