SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Guru Dashman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    627
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Border on list links

    Hi guys...
    I have the following xHTML:
    HTML Code:
        <div id="leftnav">
        <ul>
        	<li><a href="#">One</a></li>
        	<li><a href="#">Two</a></li>
        	<li><a href="#">Three</a></li>	
        	<li><a href="#">Four</a></li>			  
        </ul>
        </div>
    (I know I could give the UL the id, but I have other elements within navmain, other than the list, but thats beside the point - and I dont think it will make a difference to my case)

    So, I then have the accompanying CSS

    Code:
       #leftnav ul{
       	list-style-type: none;
       }
       #leftnav li a {
       	display: block;
       	height: 30px;
       	border-bottom: #ffcc00;
       	padding-left: 5px;
       	text-decoration: none;
       }
    Now, for some reason, I cannot get the border on the bottom on each link to appear....

    Has any body got any ideas?

    Cheers,
    D

  2. #2
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,053
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Dashman
    for some reason, I cannot get the border on the bottom on each link to appear....

    Has any body got any ideas?

    Cheers,
    D
    You need to declare a border size and type:

    Code:
    border-bottom: {1px solid #ffcc00;
    }
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  3. #3
    SitePoint Guru Dashman's Avatar
    Join Date
    Jan 2006
    Location
    Manchester, UK
    Posts
    627
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahhhhhhhhhhhh !!!!!!!!
    Sometimes the smallest silly error eh?
    I normally do that but didnt think this time...

    Cheers,
    D

  4. #4
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,053
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    It happens to us all. Reading and re-reading lines of code to find one tiny mistake
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown


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
  •