Results 1 to 2 of 2

Thread: Padding issue on link list.

  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Padding issue on link list.

    As you can see from the code, I want one item to be floated to the right, while the rest are left in a link list. The float's are presumably working find, but no padding works on the left set of links. Thanks for your help.

    HTML:
    HTML Code:
    <ul id="footnav">
    		
    <li class="right">Alex Wedderien 2008</li> 
    <li><a href="" title="">Work</a></li> 
    <li><a href="" title="">Contact Me</a></li> 
    <li><a href="" title="">Validation</a></li>
    				
    </ul>
    CSS:
    Code:
    #footer {
    	height: 66px;
    	width: 540px;
    	border-top: 1px solid #efefef;
    	padding: 10px 0;
    	margin-right: 0px;
    	margin-left: 0px;
    	font-family: Georgia, Times, serif; 
    	color: #c9c9c9;
    	font-size: 10px;
    	font-weight: normal;
    	font-variant: small-caps;
    }
    
    #footnav li { 
     	display:  inline;
     	list-style-type: none;
     	margin: 0px;
    	padding: 0px; 
    }
    
    #footnav li a { 
    	text-decoration: none; 
    	padding: 0 15px 0 0; 
    }
    
    #footnav li a:hover { 
    	color: #2f2f2f; 
    	border-bottom: 1px solid #2f2f2f;
    }
    
    #footnav .right {
    	float: right;
    }

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Try to change this part of your CSS:
    Code:
    #footnav li { 
     	display:  inline;
     	list-style-type: none;
     	margin: 0px;
    	padding: 0px; 
    }
    
    #footnav li a { 
    	text-decoration: none; 
    	padding: 0 15px 0 0; 
    }
    into:
    Code:
    #footnav li { 
     	float:left;
     	list-style-type: none;
     	margin: 0px;
    	padding: 0px;
    	display:block;
    }
    
    #footnav li a { 
    	text-decoration: none; 
    	display:block;
    	padding: 0 15px 0 0;
    }
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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
  •