When I set off this morning, the task seemed simple: build a list of elements; each element consists of a thumbnail, a caption, and a caption.
I want the image to be aligned with the caption and subtitle next to it. If you look at the YouTube video page: the field of similar videos has a similar layout.
UPDATE: To be more specific: I'm trying to create a layout from two columns: the image on the left, the text on the right. Some of the proposed solutions result in text wrapping around the image.
Here's the HTML structure:
<ul>
<li><img src="one.jpg"><div class="content">Title<br>sub-title</div></li>
<li><img src="two.jpg"><div class="content">Another Title<br>sub-title</div></li>
</ul>
Without CSS, text is displayed below the image. I tried a lot of things, float: left on the image and / or div. Nothing helped.
float: img. .
? HTML -?
!
.
Mark