, , , . , .
- .
float: , . .
<style>
li { list-style-type:none; }
img{ float:left; }
</style>
<ul>
<li><img src='bullet'>my short text</li>
<li><img src='bullet'>my very very long text</li>
</ul>
Some other points: Since different versions of browsers differ by indentation and list fields, you should install them: (Set to your preferred stock):
ul { padding:0; margin:30px }
ul li{ padding:0; margin:0 }
In addition, it is better to use an element with a background, which is your preferred brand:
span.bullet {float:left; height:10px; width:10px; background:url(bullet.gif) no-repeat}
Finally, an even better idea is not to use the image at all, but rather the prefix of the entire text with a unicode bullet. Or, if your users use a modern browser, add unicode char using CSS. However, I don’t have time to look at it now. Praps later today.
source
share