Results 1 to 3 of 3

Thread: horizontal links

  1. #1
    Join Date
    Jul 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default horizontal links

    hello all,

    i am currently working on a layout and would like the nav bar to have somewhat thicker horizontal bar.

    i am using this code but would like the height to be somewhere around 40 px. when i change the height to be 40px, the div expands but it doesnt fill it with the new color.


    CSS file
    Code:
    #menu2 ul {margin:0; width: 100%; padding: 5px 0; background-color:#666633;}
    
    #menu2 ul li {display:inline; list-style-type: none;}
    
    #menu2 ul li a:link, #menu2 ul li a:visited { background-color: 666633; color:white;text-decoration:none; padding: 5px;}
    
    #menu2 ul li a:hover { background-color: black; color:white; }
    HTML file

    Code:
    <div id="menu2">
    
    
    <ul>
    <li><a href="#">Link one</a></li>
    <li><a href="#">Link two</a></li>
    <li><a href="#">Link three</a></li>
    <li><a href="#">Link four</a></li>
    <li><a href="#">Link five</a></li>
    </ul>
    
    </div>

  2. #2
    Join Date
    Jul 2007
    Location
    California
    Posts
    177
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Dunno if it could be this...but you forgot a # in your 2nd color set...the padding could have something to do with it also...

    #menu2 ul {margin:0; width: 100&#37;; padding: 5px 0; background-color:#666633;}

    #menu2 ul li {display:inline; list-style-type: none;}

    #menu2 ul li a:link, #menu2 ul li a:visited { background-color: #666633; color:white;text-decoration:none; padding: 5px;}

    #menu2 ul li a:hover { background-color: black; color:white; }

  3. #3
    Join Date
    Jul 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Sliight View Post
    Dunno if it could be this...but you forgot a # in your 2nd color set...the padding could have something to do with it also...

    #menu2 ul {margin:0; width: 100%; padding: 5px 0; background-color:#666633;}

    #menu2 ul li {display:inline; list-style-type: none;}

    #menu2 ul li a:link, #menu2 ul li a:visited { background-color: #666633; color:white;text-decoration:none; padding: 5px;}

    #menu2 ul li a:hover { background-color: black; color:white; }
    yea thanks... i was able to adjust the padding and got it to work... i found the soution while i was messing with it yesterday!

Bookmarks

Posting Permissions

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