Forum Moderators: not2easy
<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>
Is there a way to solve this spacing issue of the list item images being too close to the text itself?
[edited by: tedster at 8:48 am (utc) on April 4, 2005]
<html>
<head>
<title>Example</title>
<style type="text/css">
ul{
list-style-type: none;
list-style-position: inside;
list-style-image: url("http://radio.ataensic.net/img/arrow.gif");
}
</style>
</head>
<body>
<h1>Internet Explorer...</h1>
<ul>
<li>Sucks</li>
<li>Should be sued</li>
<li>Doesn't conform</li>
</ul>
</body>
</html>
One thing that usually does the trick is to set the ul with NO margins or padding - unless it's a simple margin:0 auto; if it needs to be centered.
Then, you can either add any necessary padding to the li's or the img used to space things the way you want them to be. [Beware, though that IE will often cut-off images that are left-aligned unless you do some tweaking!]
Good luck,
El