panikyrobot
08 Apr 2009, 01:17 AM
Hey, I am new to web design and I've just scratched the basics on css. I've been playing around and trying to come up with a hover menu system that most sites seem to use. Similar to the one used on VEERLE.
I can get the menu to work in firefox correctly but fails in all other browsers.
The part the breaks is that for some reason the other browers just omits the background for a:link and shows the a:visited.
May someone please give me some advice? thank you!
#nav {
list-style-type:none;
}
#nav li {
float:left;
}
#nav a {
text-decoration:none;
text-indent:-9999px;
display:block;
height:32px;
}
/*home menu*/
#home a {
background-repeat:no-repeat;
width:68px;
}
#home a:link {
background-image:url(Pictures/home/home.png);
overflow:hidden;
margin-right:10px;
}
#home a:visited {
background-image:url(Pictures/home/home.png);
}
#home a:hover {
background-image:url(Pictures/home/homehover.png);
}
I can get the menu to work in firefox correctly but fails in all other browsers.
The part the breaks is that for some reason the other browers just omits the background for a:link and shows the a:visited.
May someone please give me some advice? thank you!
#nav {
list-style-type:none;
}
#nav li {
float:left;
}
#nav a {
text-decoration:none;
text-indent:-9999px;
display:block;
height:32px;
}
/*home menu*/
#home a {
background-repeat:no-repeat;
width:68px;
}
#home a:link {
background-image:url(Pictures/home/home.png);
overflow:hidden;
margin-right:10px;
}
#home a:visited {
background-image:url(Pictures/home/home.png);
}
#home a:hover {
background-image:url(Pictures/home/homehover.png);
}