I have a list of n items.
I'm trying to align the a element having child img, next to sibling p element.
I've tried setting both to display:inline-block, but I don't see any change. My code looks like this:
<li> <h3>Header 3</h3> <a href="#"><img src="example.img" alt=""></a> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate interdum lacus in hendrerit. Donec libero metus, maximus sit amet.</p> </li> My goal is to create a sort of panel where the a element is to the left with the text next to it, and the h3 centered in that same panel.
<li> <h3>Header 3</h3> <a href="#"> <img src="example.img" alt=""> </a> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate interdum lacus in hendrerit. Donec libero metus, maximus sit amet.</p> </li>