Jump to content

Assign css id to a selector into div container


raygold

Recommended Posts

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...