After researching extensively, I have yet to find a solution that works for adjusting the height of the parent div to match the absolutely positioned list-item. Is there a way to achieve this?
Currently, I have resorted to adding excessive margin to compensate for the height difference, but I know this is not the correct approach.
The structure of the HTML code is simple:
<div class="home-section products">
<div id="gallery-container">
<ul>
<li class="one"><img src="showcase-five.jpg"></li>
<li class="two"><img src="showcase-four.jpg"></li>
<li class="three"><img src="showcase-one.jpg"></li>
<li class="four"><img src="showcase-three.jpg"></li>
<li class="five"><img src="showcase-two.jpg"></li>
</ul>
</div>
</div>
I am looking for a solution to adjust the height of the li elements in order to make the .home-section adapt to their height.
If it is allowed, I can provide a link to the development site so you can review the code in question.
Thank you!