471,598 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

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)
Aug 31 '07 #1
4 1175
drhowarddrfine
7,435 Expert 4TB
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;'
Aug 31 '07 #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;'
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?
Sep 1 '07 #3
drhowarddrfine
7,435 Expert 4TB
Heading out the door. Set all margins/padding to zero and see what happens. *{margin:0;padding:0}
Sep 1 '07 #4
Heading out the door. Set all margins/padding to zero and see what happens. *{margin:0;padding: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
Sep 1 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Bryan R. Meyer | last post: by
4 posts views Thread by Jane Withnolastname | last post: by
14 posts views Thread by Harlan Messinger | last post: by
1 post views Thread by Charles Harrison Caudill | last post: by
6 posts views Thread by Mark | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.