I’m trying to figure out the positioning to do a image roller but after a hour I can’t get it.
For some reason it’s only detcting the “portfolio” link.
HTML:
[CODE]
<body>
<div id=”navigation”>
<ul id=”navmenu”>
<li id=”home”><a href=”index.html” title=”Home”></a></li>
<li id=”services”><a href=”services.html” title=”Services”></a></li>
<li id=”portfolio”><a href=”portfolio.html” title=”Portfolio”></a></li>
</ul>
</div>
</body>
CSS:
[CODE]
@charset “utf-8”;
/* CSS Document */
a:link {
color:#CC0000;
font-weight:bold;
text-decoration:none;
}
a:hover {
text-decoration:underline;
}
a:visited {
color:#CC0000;
font-weight:normal;
text-decoration:none;
}
div#navigation {
margin: 4px;
}
ul#navmenu {
width:125px;
height:125px;
margin:0;
padding:0;
background:url(menu.jpg) no-repeat;
position:relative;
}
#navmenu li {
margin: 0;
padding: 0;
list-style: none;
position: absolute;
top: 0;
}
#navmenu li,#navmenu a {
height: 125px;
display: block;
}
img {
border:none;
}
#navmenu a{
text-decoration:none;
}
#navmenu a i {
visibility: hidden;
}
#home {top: 0; width: 125px; height:43px;}
#services {top:-43px; width: 125px; height:43px;}
#portfolio {top: -86px; width: 125px; height:43px;}
#home a:hover,#home a:active {
background:transparent url(menu.jpg) 900px -113px no-repeat;
}
#services a:hover,#services a:active {
background:url(menu.jpg) -131px 0px no-repeat;
}
#portfolio a:hover,#portfolio a:active {
background:url(menu.jpg) -131px 0 no-repeat;
}
Thanks in advance
[upl-file uuid=29e0414c-8cd6-438e-b852-90035c1e8988 size=48kB]menu.jpg