471,881 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Another IE6 navbar position problem....

Hi, i've been searching for a solution to this problem but haven't had any joy yet. I have a navbar which positions perfectly in Safari, FF and IE7 - but in IE6, it is pushed out to the right of the page. I'm pretty new to CSS and don't know how to resolve this. If anyone could help, that would be great!

i'll just post the navbar html and css for now as i'm pretty sure that's where the problem lies

Expand|Select|Wrap|Line Numbers
  1. ul#nav {position:relative; margin-left:239px; }
  2. ul#nav li { float:left; list-style-type:none }
  3. ul#nav li a {height:30px; display:block; position:absolute; top:0; text-indent:-9999px; outline:none ; margin-top:160px;}
  5. li#navWelcome a, li#navWhoweare a, li#navIndependent a, li#navWhereweare a, li#navLinks a { background:url(navBG.jpg)}
Expand|Select|Wrap|Line Numbers
  1. <ul id="nav">
  2.     <li id="navWelcome"><a href="index.html">Welcome</a></li>
  3.     <li id="navWhoweare"><a href="whoweare.html">Whoweare</a></li>
  4.     <li id="navIndependent"><a href="independent.html">Independent</a></li>
  5.     <li id="navWhereweare"><a href="whereweare.html">Whereweare</a></li>
  6.     <li id="navLinks"><a href="links.html">Links</a></li>
  7. </ul>
Aug 13 '07 #1
3 1362
7,435 Expert 4TB
Which doctype are you using?
Aug 13 '07 #2
i'm using XHTML 1.0 Transitional - could this be the problem? i usually use XHTML Strict, however, i'm helping out a friend with this problem and he has created his site using Dreamweaver. I had to strip out deprecated tags and styling within the HTML.
Aug 13 '07 #3
7,435 Expert 4TB
Probably not but I wanted to make sure you are using one because IE goes into quirks without it.

I just got back from out of town and not really all here yet.
Aug 13 '07 #4

Post your reply

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

Similar topics

3 posts views Thread by David | last post: by
7 posts views Thread by Roger Withnell | last post: by
reply views Thread by Chad | last post: by
1 post views Thread by Bob Richardson | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | 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.