Maybe there is a better way to do this, but what I am going to do is when you mouseover a link, a background color slides in from the left. But what I am having issues with is the css. I have a link, and in the link there is a span (which contains the background color). There is then text after it like this:
<a href="/info/about"><span></span>About</a>
What is happening, is that the text is showing up behind the span. I have tried moving the text in front of the span, but that doesn't work either. What can I do to fix this?
I have the z-index
for each set as well, and it still doesn't work.
Here is the fiddle: http://jsfiddle.net/h5rnj/