473,388 Members | 1,071 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,388 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 1248
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.