Nav Mess up in Firefox, look right in IE

Discussion in 'CSS' started by ivogue, Mar 1, 2009.

  1. #1
    I have a nav bar look mess up when the link is too long. (see picture below)

    It looks right in IE but looks mess up in firefox. I fixed it once a long time ago with another template but I couldn't figure out this time and I spend quite some time on it... I want some expert to look into this for me. Would greatly appreciated.

    The Code in HTML:

    <DIV id=nav>
    	  <a href="">Home</a>
    	  <a href="">Consultant Services</a>
    	  <a href="">Selected Engagements</a>
          <a href="">Behavioral Competencies in Recruiting</a>
    	   <a href="">About Us</a>
    	   <a href="">Contact Us</a>
    	</div>
    Code (markup):
    in CSS:

    #nav {
    PADDING-RIGHT: 0px; WIDTH: 180px; PADDING-TOP: 0px; BORDER-BOTTOM: #E7E7E7 1px solid; BORDER-RIGHT: #E7E7E7 3px solid; BORDER-LEFT: #E7E7E7 1px solid; BACKGROUND-COLOR: #ffffff; MARGIN: 2px; 
    }
    #nav A {
    	DISPLAY: block; BORDER-BOTTOM: #E7E7E7 1px solid; COLOR: #252F35; padding:8px 0 8px 5px;
    }
    Code (markup):

    [​IMG]
     
    ivogue, Mar 1, 2009 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    The markup you show does not generate that problem. So you need to show the complete markup or, preferably, a link. In any case, this problem is because you used IE as your test bed and then checked in Firefox. IE is 11 years behind web standards. Always use a modern browser, like Firefox or anything else, to test your markup. Then look to see if/when IE screws things up.
     
    drhowarddrfine, Mar 1, 2009 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    I'd guess there's a height n li, and Firefox properly overflows, while IE improperly expands the li height. IIf that's true, IE8 will break also.

    Like the god doctor sz, we need more info to d more than guess.

    cheers,

    gary
     
    kk5st, Mar 2, 2009 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    I'd guess there's a height on li, and Firefox properly overflows, while IE improperly expands the li height. If that's true, IE8 will break also.

    Like the good doctor sz, we need more info to do more than guess.

    cheers,

    gary
     
    kk5st, Mar 2, 2009 IP