I am working on a card game using Bootstrap styling and I have a container with a background image of a card table (1000x1000). As I resize the browser window, the card table image shrinks to 800x800, then to 500x500, and finally to 200x200. My issue is that the child images within the container (100x70) do not scale proportionally with their parent container.
Is there a way to ensure that the child images also reduce in size in the same ratio as their parent container?
.game-box {
height: 1000px;
position: absolute;
left: 0;
background: url('../table/tbltop.jpg') no-repeat;
-webkit-background-size: 100% auto;
}
<div class="container game-box">
<img id="p1" class="war card">
</div>