List items can contain a couple of paragraphs, images, etc. They must remain to the right of the item number.
#page {
width: 200px;
}
li {
margin: 1em 0;
}
ol {
padding: 0;
}
<div id="page">
<p>Some text</p>
<ol>
<li>A list item</li>
<li>A multiline list item another line</li>
<li>
<p>A list item containing blocks such as example images:</p>
<div style="width:128px;height:48px;background:#CCC">Example<br/>Image</div>
</li>
</ol>
<p>Some more text</p>
</div>
Run codeHide result
Ideally, I prefer to store list tags rather than using a table or another set of positioned common blocks.
source
share