473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 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 1250
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

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

Similar topics

9
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. ...
4
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here:...
14
by: Harlan Messinger | last post by:
What am I not understanding about the definition of { position: absolute; }? "The box's position (and possibly size) is specified with the 'left', 'right', 'top', and 'bottom' properties. These...
1
by: Charles Harrison Caudill | last post by:
with tables there is a clean and algorithmic way to organize things, but with css which is, once you get it working, much cleaner, I have to tweak and patch and hope and pray and curse before...
6
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.