I've attempted to use the overflow:hidden; property, but it didn't have the desired effect. Essentially, my div is structured like this, and when I add more images, it doesn't expand along with them.
This is how the div appears: https://i.sstatic.net/oZmgj.png
.working{
width: 600px;
height: 2000px;
background-color: #ECECEC;
border-style: ridge;
border-width: 5px;
overflow: hidden;
}
<div class="working">
<p align: left; style="font-size: 25px; font-weight: bold; color: #39F51B; display: block;"> <img src="img/shopify.jpg" align="middle" style="width: 100px; height: 100px;">
Shopify dropshipping</p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/code.png" align="middle" style="width: 100px; height: 100px;">
Coding </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/ads.jpg" align="middle" style="width: 100px; height: 100px;">
Advertisement </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/amazon.png" align="middle" style="width: 100px; height: 100px;">
Amazon Mechanical Turk </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/fiverr.png" align="middle" style="width: 100px; height: 100px;">
Fiverr </p>
<p align: left; style="clear: left; display: block; font-size: 25px; font-weight: bold; color: black;"><img src="img/foap.jpg" align="middle" style="width: 100px; height: 100px;">
Sell your photos </p>
<p align: left; style=" font-size: 25px; font-weight: bold; color: black;"><img src="img/pocketflip.jpg" align="middle" style="width: 100px; height: 100px;">PocketFlip</p>
</div>