raygold
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by raygold
-
-
I have the following html code:
<div class="firstclass" id="firstid"> <div class="a-block-content"> <h2 class="text-align-center"><a href="#">Some text</a></h2> </div> </div>
How can I edit only h2 element using #firstid? Is it possible edit the second div container style
<div class="a-block-content"> <h2 class="text-align-center"><a href="#">Some text</a></h2> </div>
using #firstid? P.S. I can't edit html code, only css style.
-
Very clear. Thanks for reply
-
I'd like to know what's the correct css syntax for code below:
element>id>pseudo-classa#red:hover {color:red;}
or
id>element>pseudo-class#red a:hover {color:red;}
I think first css example shuold be right, but the second is used in this link http://www.w3schools...rites_hover_nav and it works properly.
Assign css id to a selector into div container
in CSS
Posted
What about css selectors? Can I use them to solve my issue?