SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Nov 2008
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    changing default spacing on lists

    how can i remove or modify the default spacing to the left of an unordered list? thanks

  2. #2
    SitePoint Wizard bronze trophy Centauri's Avatar
    Join Date
    May 2007
    Location
    Newcastle, Australia
    Posts
    3,718
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As IE uses left margin, and FF uses left padding by default, you have to control both. I usually set the left margin to zero and set the padding to provide the indent - this ensures any displayed bullets will appear.
    Eg:
    Code:
    ul {
      margin-left: 0;
      padding-left: 1em;
    }


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
  •