I have the following markup:
<div class="heading-container">
<p class="stroke">Who we</p>
<h2 class="section-title extreme-bold">Contact us</h2>
<p class="stroke"></p>
</div>
Now I can select the 1st .stroke using the following selector:
.heading-container .stroke:nth-child(1){
max-width: 200px;
}
but the The following does't work for the 2nd stroke class:
.heading-container .stroke:nth-child(2){
max-width: 200px;
}
but the following again works:
.heading-container .stroke:nth-child(3){
max-width: 200px;
}
Now why does the value 3 work for the 2nd nth-child slection?
For the 2nd nth-child is't the followig suppose to be appropriate:
.heading-container .stroke:nth-child(2){
max-width: 200px;
}