Results 1 to 7 of 7

Thread: Navbar Menu has margin or padding problem

  1. #1
    Join Date
    Feb 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Navbar Menu has margin or padding problem

    Hi,
    I am having a margin or padding problem with a navbar menu that is under the header and above the columns. I am getting about 15px of the background color coming through on top and bottom of navbar menu. I am stumped, I am sure it is something simple but I can't seem to find it.
    One more thing, I am wanting a 10px padding on the top and bottom of the body, I have it set in the body selector in the css but it is only showing on the top.
    The layout can be found here.
    I just checked it in IE7 and everything looks OK.
    So it looks like the problems are with Firefox!

    Thanks, Rayzur

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Try adding
    margin-top:0;margin-bottom:0; in your #navbarcontainer ul.

    or...you could change margin-left:0; to: margin:0 auto 0 auto;

    See if it helps
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. #3
    Join Date
    Feb 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks rangana, the change margin-left:0; to margin:0 auto 0 auto; worked fine for the navbar issue.

    I still can't get the 10px margin on the bottom of the <body> in Firefox.

    It looks like I got a new buggy issue in IE7 now when the window is sized down, right before min-width is reached and horizontal scroll bar is induced the header and navbar shift off to the left. Then they shift to the right when browser window is dragged larger.

    IE6 stills needs to have a min/max width expression fed to it.

    Any suggestions on making this work. My goal is
    1. Three Equalizing Columns with header,navbar, and footer
    (fixed width sidebars of say 175px, faux columns would work)

    2. Min & Max widths on layout
    3. Cross Browser Compatible

  4. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Adding margin-bottom:10px; in the footer div would aide.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  5. #5
    Join Date
    Feb 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Adding margin-bottom:10px; in the footer div would aide.
    Thanks rangana, that fixed the footer margin. I still don't understand why Firefox didn't honor the <body> padding settings in the stylesheet.

    It looks like I got a new buggy issue in IE7 now when the window is sized down, right before min-width is reached and horizontal scroll bar is induced the header and navbar shift off to the left. Then they shift to the right when browser window is dragged larger.
    Any thoughts on what is causing the header shift issue in IE7 ?

  6. #6
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Having a fix width in your header, wrapper and navbar instead of using % will make it easy for you.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  7. #7
    Join Date
    Feb 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I got the IE7 header shifting problem fixed.
    All I had to do was place a #wrapper div around everything. If you look at the "color coded div structure" image from the original layout. You will notice that the header, colmask, & footer are not wrapped up together, it worked fine for the full liquid layout but caused problems for the min-max layout that I was after.

    Here is the min-max width version for anyone who is interested.

    I have a min-max width expression in there for IE6 and it seems to be working for the width control. But there is some kind of float issue going on.

    Any IE6 experts out there that can view it and debug it?

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
  •