Jump to content

Space after li


everisk

Recommended Posts

Hi,

 

When use list element there is always a wide space after the bullet point, something like *  [blah blah]. How to control the space after the bullet? I have tried padding: 0; margin: 0; but to no success. Below is a part of my CSS and HTML.

 

HTML
=====
<div id="divid">
<ul><li>blah 1</li>
<li>blah2</li>
</ul>
</div>

CSS
=====
#divid ul {
padding: 5px 0px 0px 0px;
margin: 0px 0px 0px 10px;
}

#divid ul li {
list-style-image: url(../images/bullet_blue.gif);
margin: 0; padding: 0;
}

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/175523-space-after-li/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.