Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
-
Smitty Apr 18th 2008 edited
-
Do you have a live page I could look at? It's easier to debug when there's a live page.
-
Storm
Apr 19th 2008
A couple questions:
1: Is the background image 1 single long image?
2: Are the background images just tiny images that repeat on the x/y axis?
This tutorial may help you some, depending on what you're trying to accomplish. As amycullen2 said, a live example would be best though. -
Smitty Apr 21st 2008 editedEDIT: Thanks for the help guys, I seem to have fixed the problem by myself :)
-
Storm
Apr 21st 2008
Yeah, it tends to do that sometimes.
1 to 5 of 5
The relevant code is as follows:
CSS
#nav {
width: 791px;
height: 29px;
top: 200px;
left: 0px;
background-image: url(images/nav.jpg);
background-repeat: no-repeat;
}
.navover a:link {
background-image: url(images/nav_bg.gif);
width: 113px;
height: 30px;
display:block;
float: left;
}
.navover a:hover{
background-image: url(images/nav_over.gif);
width: 113px;
height: 30px;
display:block;
float: left;
}
.navover a:active{
background-image: url(images/nav_over.gif);
width: 113px;
height: 30px;
display:block;
float: left;
}
.navover a: visited{
background-image: url(images/nav_bg.gif);
width: 113px;
height: 30px;
display:block;
float: left;
}
HTML
<div id="nav"><div class="navover">
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
<a href="#"></a>
</div>
</div>