I have problem with first-child selector. In code I have two div (this same class), img (in every) and p (in every). When i type in CSS .div-class:first-child {margin:10}, in the p a margin is added and only in first div.
First ask: why margin was not added to img (first element in div) Second ask: why margin is added only first div (second have this same class name)
<section class="section-offer">
<div class="section-offer-single">
<img src="images/pizza.png" alt="Pizza">
<p>Some text</p>
</div>
<div class="section-offer-single">
<img src="images/pizza.png" alt="Pizza">
<p>Some text</p>
</div>
</section>
.section-offer-single:first-child{
margin: 0px 0px 130px;
}