Why don't you try it and see what happens? Or you could check this thread http://css-tricks.com/forums/viewtopic.php?f=2&t=1926. Or you could do it with jQuery.
I'm pretty sure that's not possible with CSS alone. You need to use jQuery or some other Javascript library. Unless anyone else wants to prove me wrong?
Then use whatever kinda CSS action you need to get that #test where you need to get it (display block and absolute positioning probably). Then your selector #links ul li a:hover #test will work fine.
Note that using :contains is probably overkill and slow, would be easier to target it by just giving it an ID to target. I just wanted to show a way to do it without changing any markup.
and if not, any alternatives?
Or you could check this thread http://css-tricks.com/forums/viewtopic.php?f=2&t=1926.
Or you could do it with jQuery.
the line
refers to '#test' within the 'a', where it is not, heres the markup. any suggestions?
So the aim; when a user hovers over say the twitter button the div with the twitter feed displays.
So far, http://www.wpdesigner.co.uk/test.html
Unless anyone else wants to prove me wrong?
Then use whatever kinda CSS action you need to get that #test where you need to get it (display block and absolute positioning probably). Then your selector #links ul li a:hover #test will work fine.
Otherwise jQuery:
$(\"a:contains('Twitter')\").hover(function(){$(\"#test\").show();
}), function() {
$(\"#test\").hide();
});
Note that using :contains is probably overkill and slow, would be easier to target it by just giving it an ID to target. I just wanted to show a way to do it without changing any markup.