Forum Moderators: not2easy
I need a little box with links next to it that rotate the content on rollover
So what I'm thinking (in an attempt to avoid javascript) is use <a> tags with a span inside them also so that the a:hover can change the span's css and unhide it also.
for example
<a href="#">Link 1 <span id="link1_span">This is the content that should appear</span></a>
<a href="#">Link 2 <span id="link2_span">This is the content that should appear</span></a>
So basically the span within the a is hidden (easy enough) until the a:hover which needs to unhide the span. (I'm planning on making it block to behave like a div and position it).
How do I use css to affect the span on the link rollover? Thanks.
Or is there a better way to do this?
If you want to support IE6, you will need to keep with the a element, but realize that for any other browser (or IE6 with a javascript fix), can use any element to hover over, such as a span or div, since it would be more appropriate, considering 'a's are used to link to things.
[edited by: Xapti at 4:34 pm (utc) on July 21, 2008]