I've been trying to figure out why my code below doesn't work as expected.
Basically I want the ups img
to have width: 60px
and fedex img
to have width: 100px
.
My mark up is:
<div class="delivery-services">
<span>Delivery Services</span>
<br>
<a href="#"><img src="img/fedex.png" alt="fedex" /></a>
<a href="#"><img src="img/ups.png" alt="ups" /></a>
</div>
SCSS is:
.delivery-services {
&:nth-child(3) img {
width: 100px;
}
&:last-child img {
width: 60px;
}
}
But it appears that both img are affected by last-child
!