div backround image not resizing correctly
I have a div that is set to 100% width. i need the image to resize to the full 100%.
i also have another div inside this that contains an image that should sit in the middle of the outer div. there is also text on the outer div that needs to sit at the bottom. Currently the image is not resizing. here is what i have:-
Code:
.productLeft {
height: 340px;
width: 100%;
background-size: contain;
background-repeat:no-repeat;
vertical-align: bottom;
display: table-cell;
}
.soldoutLeft {
height: 100px;
margin: auto;
width: 100%;
}
the div
Code:
<div class="productLeft" style="background-image:url('../images/SS16/<?php echo $row_rsCatLeft['Image']; ?>')"><br>
<div class="soldoutLeft"><img src="../images/sold-out.png" alt="sold out" width="100" height="100" align="right" /></div>
<div align="right"><?php echo $row_rsCatLeft['Price']; ?></div>
</div>