Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Weird border problem

    I'm having a slight problem with the appearance of the border for the DIV below the navigation bar. Firefox runs the border through the entire width of the DIV, but IE stops the bottom border as soon as the last <LI> is reached.. Any ideas guys? Thanks in advance.

    http://www.manliusvillage.org/test/index.html

    The related CSS is below:

    Code:
    #navigation{
    height:2.2em;
    line-height:2.2em;
    width:758px;
    margin:0 1px;
    background:#578bb8;
    color:#ffffff;
    }
    
    #navigation li{
    float:left;
    list-style-type:none;
    border-right:1px solid #ffffff;
    border-bottom:1px solid #ffffff;
    white-space:nowrap;
    }
    
    #navigation li a{
    display:block;
    padding:0 10px;
    font-size:0.8em;
    font-weight:normal;
    text-transform:uppercase;
    text-decoration:none;
    background-color:inherit;
    color: #ffffff;
    }
    
    * html #navigation a {width:1%;}
    
    #navigation .selected,#navigation a:hover{
    background:#80b0da;
    color:#ffffff;
    text-decoration:none;
    }
    
    #sublinks{
    float:left;
    height:1.4em;
    line-height:1.4em;
    width:758px;
    margin:0 1px;
    background:#578bb8;
    color:#ffffff;
    }
    
    #sublinks li{
    float:left;
    list-style-type:none;
    white-space:nowrap;
    border-right:1px solid #578bb8;
    }
    
    #sublinks li a{
    display:block;
    padding:0 5px;
    font-size:0.8em;
    font-weight:normal;
    text-transform:uppercase;
    text-decoration:none;
    background-color:inherit;
    color: #ffffff;
    }
    
    * html #sublinks a {width:1%;}
    
    #sublinks .selected,#sublinks a:hover{
    color:#000000;
    text-decoration:none;
    }
    Last edited by and3109; 12-24-2006 at 09:31 PM.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,667
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello and3109,
    When IE loses borders like that it usually means your buttons are bigger than the menu container. You used ems to size #navigation but did not specify a size for the li buttons, the border must be extra and breaks out.

    I added
    Code:
    height: 2.1em;
    to #navigation li and the border makes it under your buttons at least.

    I didn't mess with it enough to get the border all the way across the bottom of #navigation.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New Coder
    Join Date
    Dec 2006
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Got it...thanks!
    Last edited by and3109; 12-24-2006 at 10:54 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •