I am trying to do a rollover menu in CSS.
This is what I have for a stylesheet:
a.home {
display: block;
width: 75px;
height: 30px;
background: transparent url(images/home.gif) no-repeat;
}
a.home:hover {
background-position: -75px 0;
}
I have this saved in a folder called includes as stylesheet.css
In the head of my HTML file, I have this:
<link href="includes/stylesheet.css" rel="stylesheet" type="text/css">
That should load it.
Now, if I have a blank document, this works fine:
<body>
<a class="home" href="#"></a>
</body>
The problem I am having is that when I try to make it work on my actual page, it isn't working.
Now, I am putting the <a.... portion into a row of a table so this is apparently what is causing the issue and I don't know how to fix it. Any ideas? I know, I know ditch the table, and I will but I don't know how to do that just yet. I'm wanting to get a basic page up with the info I need and then figure out how to do all of the layout in CSS.