I am having trouble altering the background of my divs when they are contained within an li element. It seems that the problem may be related to the arrangement of my elements.
<ul class="featured-items">
<li><div class="inner"><div class="item-content"></div></div></li>
<li><div class="inner"><div class="item-content"></div></div></li>
<li><div class="inner"><div class="item-content"></div></div></li>
</ul>
.featured-items li .inner:nth-of-type(1) {
background-image: url(../images/phone.jpg);
}
.featured-items li .inner:nth-of-type(2) {
background-image: url(../images/firelace.jpg);
}
Currently, each inner element displays "phone.jpg".