Another IE6 navbar position problem....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicky77
    New Member
    • Aug 2007
    • 25

    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

    Code:
    ul#nav {position:relative; margin-left:239px; }
    ul#nav li { float:left; list-style-type:none }
    ul#nav li a {height:30px; display:block; position:absolute; top:0; text-indent:-9999px; outline:none ; margin-top:160px;}
    
    li#navWelcome a, li#navWhoweare a, li#navIndependent a, li#navWhereweare a, li#navLinks a { background:url(navBG.jpg)}
    html...
    Code:
    <ul id="nav">
    	<li id="navWelcome"><a href="index.html">Welcome</a></li>
    	<li id="navWhoweare"><a href="whoweare.html">Whoweare</a></li>
    	<li id="navIndependent"><a href="independent.html">Independent</a></li>
    	<li id="navWhereweare"><a href="whereweare.html">Whereweare</a></li>
    	<li id="navLinks"><a href="links.html">Links</a></li>
    </ul>
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Which doctype are you using?

    Comment

    • nicky77
      New Member
      • Aug 2007
      • 25

      #3
      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.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        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.

        Comment

        Working...