#main .thumbBorder {
background-color: #e1e1e1;
padding: 2px;
border: solid 1px #cfcfcf;
margin: 14px;
}
#main .thumbnail {
background-image: url('http://images.idealer1.com/getimage/188/4937261.jpg');
height: 125px;
width: 188px;
}
<div class="thumbBorder">
<div class="thumbnail"> </div>
</div>
What would be the proper way to get the outer div
thumbBorder
to wrap tightly around the inner div
thumbnail
?
Right now, the outer div
thumbBorder
is expanding to the limits of its entire outer content block.