SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict Mainer82's Avatar
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    249
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Define indent with lists?

    How do I define the indent spacing for listings?

    I don't want my lists to indent as far as they do.

    Thanks in advance
    Get to know the man behind the screen

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,782
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi,

    I think IE using margin for its default indent and Mozilla uses padding. So setting padding and margin to zero should make them start off in the same place.

    Code:
    ul {margin-left:0px;padding-left:0px}
    This will make the list display against the left edge with no room for the bullet. You can then set a suitable margin-left for the indent you need. (You may need a bit of trial and error here.)

    Hope this helps.

    Paul


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
  •