I’m wondering if it’s possible to update another objects style from a stylesheet, like this example wants to show h1 when you hover over a:
a:hover { set h1:display:block; }
h1 { display: none; }
Is this possible in CSS?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you put the
h1in thea, then you could use this style:If the
h1comes right after thea, then you can use this:Otherwise, you’d have to use Javascript.