SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: CSS menu help!

  1. #1
    SitePoint Member
    Join Date
    Oct 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS menu help!

    Hi everyone,

    I made a CSS menu with submenus for my new website.
    I am using html 5 and the menu sits inside a nav tag which in turn resides inside a header tag. The header tag is then inside the container.

    When the position of the container is set to fixed the menu hovers work, but when the position is set to relative they don't.
    I can't use position fixed for the container as this messes up my page layout.
    I've messed around with z-index but I wasn't able to fix the problem.
    I am relatively new to CSS and would greatly appreciate any help.

    I posted two versions of my menu one with fixed and the other with relative positioning for the container:
    http://copperbluemedia.com/CSSmenu_p...nAbsolute.html
    http://copperbluemedia.com/CSSmenu_p...nRelative.html

    Thank you

    Iokasti

  2. #2
    SitePoint Member
    Join Date
    Oct 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind, I just managed to fix this problem. I removed the negative z-index from the container and that fixed the problem.

    Iokasti


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
  •