Jump to content
  • Advertisement
Sign in to follow this  

[web] Use CSS to control other elements

This topic is 3607 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys, I was wondering if using CSS say when you hover over a link, it can be used to control the styles of other elements. Obviously you could do that using javascript, but I wanted to know if it was possible as I have never come across anything to suggest you could, thanks guys :D

Share this post

Link to post
Share on other sites
Thanks Karan, lol thought as much, oh well, yeh I think I have used the jQuery library before as well, thanks for the reply Karan :D

Share this post

Link to post
Share on other sites
Thanks jbadams, you know what I was just doing my own little experiments in using selectors in that exact way last night after I posted the thread, thanks for that :D, could I ask then is it possible to use as long a string of elements in a decedent selector for example using the following code :

<tag_2 id="yes">
<tag_5 class="no">
<tag_6 id="maybe">

tag_1 tag_2#yes tag_5.no tag_6#maybe {

would the CSS style correctly set the style for tag_6 or is there a finite number of elements that can be used in a selector :D

Thanks guys :D

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!