CSS abourt order list and unorder list (<OL>, <UL>)

Discussion in 'HTML' started by Cylix, Jun 13, 2006.

  1. Cylix

    Cylix Guest

    When I using <OL> and <UL>,
    I find there is a large space at the top and bottom of the list.
    How can I set those space height in css/js ?

    Please advise. Thanks.
     
    Cylix, Jun 13, 2006
    #1
    1. Advertisements

  2. Cylix wrote:
    > When I using <OL> and <UL>,
    > I find there is a large space at the top and bottom of the list.
    > How can I set those space height in css/js ?
    >
    > Please advise. Thanks.
    >


    try:

    OL, UL { margin-top: 0; margin-bottom: 0; }

    in your stylesheet ans see what happens then study:

    http://www.w3.org/TR/CSS21/box.html

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO
    http://www.LittleWorksStudio.com
     
    Jonathan N. Little, Jun 13, 2006
    #2
    1. Advertisements

  3. Cylix

    Cylix Guest

    Thanks Jonathan.
    The problem is solved.
     
    Cylix, Jun 14, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tom watson

    print.css and screen.css

    tom watson, Sep 9, 2003, in forum: HTML
    Replies:
    1
    Views:
    627
    Jukka K. Korpela
    Sep 9, 2003
  2. Leslie
    Replies:
    4
    Views:
    687
    Toby A Inkster
    Dec 15, 2003
  3. =?ISO-8859-1?Q?G=E9rard_Talbot?=

    Whining and bitching about MSIE 6 CSS bugs and CSS support

    =?ISO-8859-1?Q?G=E9rard_Talbot?=, Jul 9, 2005, in forum: HTML
    Replies:
    0
    Views:
    551
    =?ISO-8859-1?Q?G=E9rard_Talbot?=
    Jul 9, 2005
  4. Soren Kuula
    Replies:
    2
    Views:
    770
    Soren Kuula
    Feb 1, 2004
  5. Frank & Janny Plaza
    Replies:
    4
    Views:
    763
    Kenneth Hutson
    Sep 23, 2003
  6. cspoh
    Replies:
    0
    Views:
    403
    cspoh
    Jul 31, 2003
  7. Stephan Kämper
    Replies:
    2
    Views:
    368
    Stephan Kämper
    Jan 18, 2004
  8. Replies:
    1
    Views:
    416
    Randy Webb
    Feb 19, 2006
Loading...