I have a specific DIV that is intended to contain information about a product. This DIV is generated within a PHP loop, so each product will have its own individual DIV with its relevant details.
The issue I am facing is that the DIV appears very small in size. Despite this, all the content inside the DIV is visible, but the overall height of the DIV remains minimal.
How can I adjust the DIV's height to encompass the total height of all the products within it?
Below is the code for my current DIV styling:
.cartItem {
border-top: 1px solid #dddddd;
display: block;
padding-bottom: 0.5em;
}
Thank you in advance!