Sun Dec 04, 2011 12:18 am
<html>
<head>
<title>Anchor background-position</title>
<style rel="stylesheet" type="text/css">
#header {
width: 800px;
height: 300px;
background-position: top right;
background-image: url(site_logo.gif);
}
#sectionPart {
float: left;
margin: 50px 0 0 30px;
}
#sectionPart li {
display: inline;
line-height: 40px;
}
#sectionPart li a {
background-color: green;
background-position: top right;
background-repeat: no-repeat;
height: 40px;
display: block;
float: left;
font-size: 13px;
color: white;
}
</style>
</head>
<body>
<div id="header">
<ul id="sectionPart" >
<li><a href="#" >Fixed list element example!...</a></li>
<li><a href="#" >Fixed list element example!...</a></li>
<li><a href="#" >Fixed list element example!...</a></li>
</ul>
</div>
</body>
</html>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.