<ul> Remove Indent

Discussion in 'HTML' started by CEFM, Apr 25, 2005.

  1. CEFM

    CEFM Guest

    Is there a way as an html attrabute or css attrabute to remove the indent in
    an unorderd list?
     
    CEFM, Apr 25, 2005
    #1
    1. Advertising

  2. CEFM wrote:

    > Is there a way as an html attrabute or css attrabute to remove the indent
    > in an unorderd list?


    No, but there are CSS properties: margin and padding.

    --
    David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is
     
    David Dorward, Apr 25, 2005
    #2
    1. Advertising

  3. CEFM

    Toby Inkster Guest

    David Dorward wrote:
    > CEFM wrote:
    >
    >> Is there a way as an html attrabute or css attrabute to remove the
    >> indent in an unorderd list?

    >
    > No, but there are CSS properties: margin and padding.


    And if you set margin or padding on an unordered list, make sure you set
    them both, and set both padding and margin on the list items too.

    UL {
    padding: something;
    margin: something;
    }
    UL LI {
    padding: something;
    margin: something;
    }

    Otherwise you will have a bunch of problems getting it to work
    cross-browser.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact
     
    Toby Inkster, Apr 25, 2005
    #3
    1. Advertising

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. Simon-Pierre  Jarry
    Replies:
    2
    Views:
    2,376
    Henrik
    Aug 10, 2005
  2. Brad Gillespie

    Eclipse how to remove auto-indent....

    Brad Gillespie, Aug 25, 2003, in forum: Java
    Replies:
    0
    Views:
    2,955
    Brad Gillespie
    Aug 25, 2003
  3. tshad
    Replies:
    6
    Views:
    21,469
    tshad
    Aug 8, 2006
  4. dt
    Replies:
    4
    Views:
    496
    CBFalconer
    Dec 31, 2006
  5. MumHa

    How to remove indent of ASP.NET Server Controls

    MumHa, Dec 7, 2005, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    218
Loading...

Share This Page