SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    List alignment and spacing

    Hey all,
    Im trying to get a normal list to align normally with the rest of the page content. No returns before or after the list and no indentation of the list.

    I.E.:
    This is a test paragraph This is a test paragraph This is a test paragraph This is a test paragraph This is a test paragraph.
    1. List item 1.
    2. List item 2.
    3. List item 3.
    This is a test paragraph This is a test paragraph This is a test paragraph This is a test paragraph This is a test paragraph.

    I looked all over and figure out how to do this. The closest i came was this:

    .lst {font-family:verdana;color:#000000;font-size:12px;list-style-type: decimal;display:inline;}

    It is in a .css file as a class and i use it for <ol> or <ul>. It works except for the fact that i need the "list-style-type: decimal" to actually work. When i use this code it doesnt display the numbered list, only circles.

    Any help is appreciated.

    -Skourge

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    P  { margin: 0px; }
    OL { margin: 0px; padding: 0px; list-style: inside decimal; }
    ----Adopt-a-Sig----
    Your message here!

  3. #3
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, works like a charm! thanks so much.
    *hmm... im slow. edited out my edit.*
    Last edited by Skourge; Aug 30, 2002 at 09:40.


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
  •