In this particular div block, I have set a height as shown below:
<div>
<!-- content -->
</div>
Along with the following styles:
div{
height:100px;
}
However, I am interested in dynamically adjusting the height of the div based on the content inside it. Specifically, if the content's height exceeds 100px
, I would like the div to expand to accommodate the content's height. Any ideas on how to achieve this?