...

View Full Version : link is not using css



esthera
05-18-2009, 09:45 AM
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

#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;


}

abduraooft
05-18-2009, 09:54 AM
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

#links li {
display:inline;
margin:0;
padding:10px;
}

} Besides that, there is an extra }

esthera
05-18-2009, 10:09 AM
thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum