vrufusx65v
New Member
- Messages
- 74
- Reaction score
- 0
- Points
- 0
I was making my nav bar using sprites and CSS and when i got to a specific button it repeated the nav bar over again and i cant fix it... the first picture is a photo of what it should look like [just the top row, the other rows are for the sprite action], and the second picture is what it currently is... if you know CSS well then you can probably help out. heres also my css code for the tabs.
much appreciated...
Code:
/* Tabs */
ul#tabs {
margin-top: 30px;
position: absolute;
right: 0px;
top: -60px;
}
ul#tabs li {
background: url('../img/tabs-sprite.png') no-repeat;
float: left;
height: 35px;
margin-right: 1px;
width: 70px;
}
ul#tabs li a {
display: block;
height: 100%;
text-indent: -9000px;
width: 100%;
}
ul#tabs li#previous {
background-position: 0px 0px;
width:70px;
}
ul#tabs li#previous:hover {
background-position: 0px -40px;
}
ul#tabs li#previous.current, ul#tabs li#previous:active {
background-position: 0px -80px;
}
ul#tabs li#home {
background-position: -70px 0px;
}
ul#tabs li#home:hover {
background-position: -70px -40px;
}
ul#tabs li#home.current, ul#tabs li#home:active {
background-position: -70px -80px;
}
ul#tabs li#videos {
background-position: -140px 0px;
}
ul#tabs li#videos:hover {
background-position: -140px -40px;
}
ul#tabs li#videos.current, ul#tabs li#videos:active {
background-position: -140px -80px;
}
ul#tabs li#archives {
background-position: -210px 0px;
}
ul#tabs li#archives:hover {
background-position: -210px -40px;
}
ul#tabs li#archives.current, ul#tabs li#archives:active {
background-position: -210px -80px;
}
ul#tabs li#forums {
background-position: -280px 0px;
}
ul#tabs li#forums:hover {
background-position: -280px -40px;
}
ul#tabs li#podcasts {
background-position: -350px -0px;
}
ul#tabs li#podcasts:hover {
background-position: -350px -40px;
}
ul#tabs li#podcasts.current, ul#tabs li#podcasts:active {
background-position: -350px -80px;
}
ul#tabs li#downloads {
background-position: -420px 0px;
}
ul#tabs li#downloads:hover {
background-position: -420px -40px;
}
ul#tabs li#downloads.current, ul#tabs li#downloads:active {
background-position: -420px -80px;
}
ul#tabs li#about {
background-position: -490px 0px;
}
ul#tabs li#about:hover {
background-position: -490px -40px;
}
ul#tabs li#about.current, ul#tabs li#about:active {
background-position: -490px -80px;
}
ul#tabs li#contact {
background-position: -560px 0px;
}
ul#tabs li#contact:hover {
background-position: -560px -40px;
}
ul#tabs li#contact.current, ul#tabs li#contact:active {
background-position: -560px -80px;
}
ul#tabs li#next {
background-position: -630px 0px;
width: 65px;
}
ul#tabs li#next:hover {
background-position: -630px -40px;
}
ul#tabs li#next.current, ul#tabs li#next:active {
background-position: -630px -80px;
}
much appreciated...