I am facing an issue with selecting the second div tag within a section that contains 2 divs and an img tag. I attempted to use section div:nth-child(2)
, but it is targeting the second element inside the first div. However, my goal is to select the second div directly without adding a class or using nth-child in the section itself.
<section>
<img src="./somewhere" alt = "something">
<div>
<h2>My Page</h2>
<p> something </p>
</div>
<div>
<button>first btn</button>
<button> second btn </button>
</div>
</section>