- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Is is possible to create define a CSS characteristic such as
#links ul li a:hover #test
{ display: block; }
and if not, any alternatives?
I did try it but it didn’t seem to work with me, I want to avoid jquery as is required javascript enabled. Thanks for think, I will try this!
what are you trying to achieve? We might be able to see it from another angle…
Hi,
So the aim; when a user hovers over say the twitter button the div with the twitter feed displays.
If you need to use pure CSS:
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:
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.
Cheers Chris, this works