SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Location
    Hillsborough NH
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having problems with site auto width

    A new site I am working on the layout for is giving me fits with the width of the site...

    http://lifeintel.com/

    If you visit the site you will see that there are horizontal scroll bars and I for the life of me can't figure out what's causing it. Any help would be greatly appreciated, I am sure it's something obvious I am missing...

    Thanks.
    Matt Nelson
    Nelson Design Studios
    www.nelsondesignstudios.com

  2. #2
    Ripe Tomatos silver trophybronze trophy Rayzur's Avatar
    Join Date
    Jun 2007
    Location
    Texas
    Posts
    4,174
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    The problem is in your drop down menu, you have set your sub ul to 150% width.

    Code:
    ul {    left: 0;
    
        margin: 0;
        padding: 0.4em 0;
        position: absolute;
        top: 100%;
    
        visibility: hidden;
        width: 150%;
    
        z-index: 9999;
    
    
    }
    If you hover on Products & Services each sub ul gets wider due to the rule above in red.

    Actually you have a sub-menu class <ul class="sub-menu"> but there are no styles to it. That is where you will need to reset the width


Tags for this Thread

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
  •