kippie
Technical User
- Nov 8, 2001
- 158
In the HTML below I try to get all "cows" aligned to the left side as is done in the first line. In that first line I use the code "margin-left: -6px" in orde to make the distance between the bullet and the first word smaller than the default value. But how to make that distance smaller also in the other lines? Can someone help?
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<style type="text/css">
.text { color: #4c5ea1; font: 11px Arial, Helvetica, sans-serif, Arial, Helvetica, sans-serif; text-align: justify; margin-top: -5px; }
#textlayer { position: relative; z-index: 12; left: 0px; top: 0px; width: 150px; height: 50px; visibility: visible }
</style>
</head>
<body>
<div id="textlayer" class="text">
Animals:
<ul style="list-style-image: URL( list-style-position: outside; margin: 0 0 20 20px" >
<li><span style="margin-left: -6px;">cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow </span></li>
<li>horse, horse, horse, horse, horse, horse, horse, horse, horse, horse, horse, horse</li>
<li>dog</li>
</ul>
</div>
</body>
</html>
Kippie
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<style type="text/css">
.text { color: #4c5ea1; font: 11px Arial, Helvetica, sans-serif, Arial, Helvetica, sans-serif; text-align: justify; margin-top: -5px; }
#textlayer { position: relative; z-index: 12; left: 0px; top: 0px; width: 150px; height: 50px; visibility: visible }
</style>
</head>
<body>
<div id="textlayer" class="text">
Animals:
<ul style="list-style-image: URL( list-style-position: outside; margin: 0 0 20 20px" >
<li><span style="margin-left: -6px;">cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow, cow </span></li>
<li>horse, horse, horse, horse, horse, horse, horse, horse, horse, horse, horse, horse</li>
<li>dog</li>
</ul>
</div>
</body>
</html>
Kippie