Results 1 to 3 of 3

Thread: Drop down menu is masked behind image, also padding ?

  1. #1
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Question Drop down menu is masked behind image, also padding ?

    http://stnickporticons.com/indexmenutest.html is my test page I just made/uploaded to test out the purecssmenu. I used your help from a previous thread on how to make it full width and centered. My problem now with this site is that when you mouse over the Iconography menu that the drop down menu shows up half behind the image. How do I make it so that the drop down is in front??

    Also my next issue is with the padding in div.one. If you look at the site, or image below, you will see the top paragraph that starts with "In early 2002" has no padding on the left, it's right up to the edge of my white div.
    I have it like this:

    Code:
    div.one {  
          padding: 15px;  
          min-height:100%;
    }


    I've attached the HTML and CSS files.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    In the stylesmenutest.css line around line 50 you can add a z-index like this:
    Code:
    ul.pureCssMenu ul{
    	width:164.85px;
            z-index: 10;
    }
    that should make the menu stay in front of the image

    The css you have for div.one should work. I think the problem is that you have an html comment right above that rule. html comments <!-- --> are not allowed in css files. If you need a comment you can use this:

    /* css comment */

    this will work in css and also in javascript files

    Anyway, try to remove the html comment and see what happens.
    Last edited by azoomer; 03-08-2011 at 10:02 PM. Reason: correction

  3. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Thumbs up

    Thank you for your help.

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
  •