SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Aug 2004
    Location
    Swindon
    Posts
    304
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css menu position

    Hello all,

    Im running into a sligh issue that im now stuck with.

    It can be seen
    here

    if you hover over about us, the menu is correct, but if you hove over the others it isnt. I need to try to anchor the sub menu to the left - is this possible?

    the code im using atm is this...

    Code:
    #nav li ul {background-color: #999999; width:894px; height:2.09em; font-size:100%; margin-top:3px; position: absolute; top:24px; font-weight:normal; left: -999em;}
    	#nav li:hover ul, #nav li.sfhover ul {left:-58px; z-index:99999}

  2. #2
    SitePoint Evangelist BJ Duncan's Avatar
    Join Date
    Jun 2007
    Location
    Bowen Mountain, NSW
    Posts
    490
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just had a quick look and without seeing the rest of the code or how it is set up, i feel it maybe within your "left:-58px;". It appears this may have to be customised to each link, as you are setting the left to -58px of the parent link rather then to the left of screen.

    Sorry I don't have the How? I just have the Why. Maybe someone else can take it from here?
    Regards,
    BJ Duncan


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
  •