I observed a relative strange behavior when I use floating images in a document. The list items indentation is made relatively to the 'red line' instead of the 'green' one.
Why is this happening and can I solve this?
<img style="float: left">
<p>some text</p>
<ul>
<li>aaa</li
<li>bbb</li
</ul>
<p>some other text</p>
Combination answer of a few things I managed to dig up to make this work.
HTML:
LESS:
This worked for me, from: http://enarion.net/news/2012/css-perfect-indented-line-ulli-around-a-floating-image/
Chrome, Firefox etc:
Internet Explorer:
Just add
ul { list-style-position: inside; }
because by default it is set to outside, not sure why.I think you probably need to change the list style position to
inside
.