I am using list style image to show dots for an unordered list. They are appearing a little far from text and i want to make the distance between the list text and dot a little less. I have tried padding and margin but nothing seems to work. Can somebody please suggest something.
Share
You could try a negative
text-indenton the<li>:For example: http://jsfiddle.net/ambiguous/QgNxw/
Browser support might be a bit dodgy (e.g. Opera and WebKit don’t render that fiddle the same way). You could also try using the
:beforepseudo-element to add your own bullet:For example: http://jsfiddle.net/ambiguous/eXxzH/
But then you’ll have trouble with browsers that don’t understand
:before; but everyone but IE7 and older understand:beforeso that might not be an issue.If CSS3 is okay, you might be able to do something with the
::markerpseudo-element.There isn’t that much fine grained control over how the bullets for a list item are rendered.