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
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts

    link is not using css

    what am I doing wrong

    html code is

    <div id="links">
    <ul>
    <li><a href=index.php>Home</a></li>
    <li><a href=index.php>About Our Services</a></li>
    <li><a href=index.php>Portfolio</a></li>
    <li><a href=databasesolutions.php>Database Solutions</a></li>
    <li><a href=hosting.php>Web Hosting</a></li>
    <li><a href=index.php>Links</a></li>
    </ul>

    </div>


    css code is
    Code:
    #links{
    	background-image: url(images/linkbg.jpg);
    	background-repeat: repeat-x;
    
    
    }
    
    #links ul{
    margin:0;
    	padding:10px 10px 0 0px;
    	list-style:none;
    	
    	}
    
    #links li {
    	display:inline;
    	margin:0;
    	padding:10;
    	}
    
    }
    #links a  {
    	font-size:14px;
    	font-family: Verdana, Arial, Helvetica, sans-serif;
    	font-weight: bold;
    	color: #ffffff;
    	text-decoration:none;
    
    
    }

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    validate your CSS using http://jigsaw.w3.org/css-validator/#validate_by_input
    You need to give some units(px,em,pt,%) for your padding at
    Code:
    #links li {
    	display:inline;
    	margin:0;
    	padding:10px;
    	}
    
    }
    Besides that, there is an extra }
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts
    thanks


  •  

    Posting Permissions

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