Firstly, I couldn't find the exact issue you're facing. Secondly, you might want to consider using a structure like this:
<ul>
<li>
<figure>
<img src="http://wiki.urbandead.com/images/thumb/6/6a/Img_upld.gif/100px-Img_upld.gif" alt="">
<figcaption>
<h6>Title 1</h6>
<p>Description 1</p>
</figcaption>
</figure>
</li>
<li>
<figure>
<img src="http://wiki.urbandead.com/images/thumb/6/6a/Img_upld.gif/100px-Img_upld.gif" alt="">
<figcaption>
<h6>Title 2</h6>
<p>Description 2</p>
</figcaption>
</figure>
</li>
<li>
<figure>
<img src="http://wiki.urbandead.com/images/thumb/6/6a/Img_upld.gif/100px-Img_upld.gif" alt="">
<figcaption>
<h6>Title 3</h6>
<p>Description 3</p>
</figcaption>
</figure>
</li>
</ul>
This approach helps in organizing content with corresponding images and gives better styling flexibility. Utilizing figure
and figcaption
elements ensures proper semantic structure. Feel free to reach out for more assistance!
UPDATE: After investigating further, it seems that the problem you're experiencing is related to the display: inline-block;
property behavior. Switching to float: left;
, combined with applying overflow: hidden;
to the unordered list (or using a clearfix method) should resolve the issue.