I had a link a while back that told how to get rid of the space around the [li] tags in CSS. Can't seem to find it now. Anyone know how?
Space around <li> tags...
Collapse
X
-

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Comment
-
That what you are looking for?Code:<ul style="margin: 0;"> <li>knklnlkn</li> <li>lknlonln</li> </ul>
Comment
-
What is inside the li?
If there is an image inside, try using li img { display: block; }
If there is only text and the padding is top & bottom adjust li { line-height: 1em; }
Or are you referring to bullet spacing?History will be kind to me for I intend to write it.Comment
-
Margin and padding do control the space inside and outside of the LI "box."
If you're wanting to control the space between the bullet point and the text then { text-indent: 0pt;} or something along those lines will do it.Comment
-
Comment
-
Your gonna have to ask a CSS expert.
There is a short hand way of doing this that will work for IE and FIreFox.
Im looking for a mod done to my WordPress theme that a CSS expert did for me. It was kinda of the same thing.ISeekGirls.com since 2005Comment
-
Hit me up on ICQ (349-164-75) if you need a CSS mod done
UUGallery Builder - automated photo/video gallery plugin for Wordpress!
Stop looking!
Checkout Naked Hosting, online since 1999 ! 

Comment
-
sigh.. had to open the dreamweaver
you're right but padding gets rid of the "indentation" while margin gets rid of the space between the ul and the li
so to get rid of all space it would be
no css expert necessaryCode:<ul style="margin: 0; padding: 0;"> <li>knklnlkn</li> <li>lknlonln</li> </ul>
flexx [dot] aeon [at] gmailComment
-
Comment
-
0 and 0px are the same thing - that is strictly a preference and makes no difference.
http://www.w3.org/TR/CSS2/syndata.html#length-units
The format of a length value (denoted by <length> in this specification) is a <number> (with or without a decimal point) immediately followed by a unit identifier (e.g., px, em, etc.). After a zero length, the unit identifier is optional.History will be kind to me for I intend to write it.Comment




Comment