All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

How i control List style

  • # April 1, 2009 at 11:35 pm

    how i customize gap between list style and list text.

    # April 2, 2009 at 2:44 am

    I’m not 100% I understand what you’re talking about, but I assume you mean unordered (ul) and ordered (ol) lists:

    In your css:

    li {
    margin: 5px 0;

    This will create an extra 5px gap above and below each listed item.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed