SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast gumnut's Avatar
    Join Date
    Feb 2002
    Location
    Brogo NSW Australia
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Spacing between list items

    How do you adjust the margin between list items in an ordered list?
    Roger Bunyan
    Sustainability will be achieved by a cultural change, not by technology.

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well you mentioned one: margin. You can also change the padding or the line-height -- all with CSS. Though, I'd still recommend changing the margin:
    Code:
    li {
      margin: 1em 0;  /* makes the top and bottom margins one
                      line of text high and the side margins
                      nothing */
    }
    ~~Hope This Helps


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •