Nav Bar Positioning

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gener672
    New Member
    • Aug 2006
    • 18

    Nav Bar Positioning

    Two problems:
    1 Text for 'nav-bar-to-be' not centered in Firefox but IS in IE6.

    2 'Nav-bar-to-be' not at top of screen in IE6 but IS in Firefox

    Seems to be a difference in handling of divs (for problem #2 ... maybe for # 1 also).

    Pared down html/CSS .... can be viewed at www.dvmvac.com/REDESIGNnew/testca.shtml

    made all CSS internal

    Using 'strict' DOCTYPE ... validated html via Web Developer 1.1.4 add-on and W2C.

    Have tried many combo's - nothing seems to work - what am I doing wrong?

    (By the way - colors in the test are not final)
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    The real question is "Why is IE centering it at all?" You have no markup to do that.

    In that #midnav, #navdiv area add 'margin:0 auto;'

    Comment

    • gener672
      New Member
      • Aug 2006
      • 18

      #3
      Originally posted by drhowarddrfine
      The real question is "Why is IE centering it at all?" You have no markup to do that.

      In that #midnav, #navdiv area add 'margin:0 auto;'
      Thank you, centered in FF and IE .... but space still added at top (above nav text).

      Any idea how to make FF and IE render the same ... or isn't it possible?

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Heading out the door. Set all margins/padding to zero and see what happens. *{margin:0;padd ing:0}

        Comment

        • gener672
          New Member
          • Aug 2006
          • 18

          #5
          Originally posted by drhowarddrfine
          Heading out the door. Set all margins/padding to zero and see what happens. *{margin:0;padd ing:0}
          A little better now. In FF, the 'nav text' is on line 1 of display - good .... in IE6, 'nav text' is on line 2 - almost good - acceptable since it will be at the top of each page.

          I'm satisfied with the way it is and unless you have another suggestion, this
          thread (discussion) can be closed.

          Thank you

          Comment

          Working...