- Impact
- 200
I'm relatively new to CSS...
I'm trying to create a sidebar menu using <ul id="menu"> instead of <div id="menu"> and even if the images do show up on both FF & IE, the <a href="link"> for each button won't work (like if I move my cursor over the buttons, nothing happens). Can someone help me identify the problem? Thanks.
The HTML part looks a bit like this (I'm just replacing the id names):
The CSS part looks a bit like this:
I'm trying to create a sidebar menu using <ul id="menu"> instead of <div id="menu"> and even if the images do show up on both FF & IE, the <a href="link"> for each button won't work (like if I move my cursor over the buttons, nothing happens). Can someone help me identify the problem? Thanks.
The HTML part looks a bit like this (I'm just replacing the id names):
Code:
<ul id="menu">
<li id="home"><a href="home.html"></a></li>
<li id="about"><a href="about.html"></a></li>
<li id="contact"><a href="contact.html"></a></li>
</ul>
The CSS part looks a bit like this:
Code:
#home, #home a {
margin: 0 auto;
padding: 0px;
border: none;
text-indent: -10000px;
background-image: url(images/home.png);
background-repeat: no-repeat;
height: 50px;
width: 300px;
}
#home a:hover {
background-image: url(images/home_on.png);
}





