SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Padding on nav exceeds container max width.

    I'm having trouble figuring the CSS involved on the navigation for this site I'm working on. I'm still new to this and cannot get it right.
    http://www.coldwellutah.com/cb_2/
    The padding I'm using to push the navigation from the left is also causing scrollbars to always be present due to it's adding room at the right side of the div.

    Any suggestions on a better way to do this?
    Thanks!

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2006
    Posts
    493
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Remove the xml prolog as it switches IE to quirks mode.
    Remove width:100% in #nav add #navblock{width:100%;background-color:#466CB2;overflow:hidden;}

  3. #3
    SitePoint Enthusiast ComputerGuru247's Avatar
    Join Date
    Jul 2006
    Location
    Wisconsin
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Padding tends to push things one way or another. Try using margin instead. That will give you a padding without moving a color or box over.
    Bryan

    Breakpoint Designs - Web Design, Logos, and more!

  4. #4
    SitePoint Member
    Join Date
    Mar 2006
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As soon as I feel like I'm starting to get an understanding as to how CSS layouts work, something little like this happens and throws it all off for me. I have made some revisions and it seems to be working. Thanks for the help! Much appreciated!


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
  •