www.webdeveloper.com
Results 1 to 4 of 4

Thread: Want to display <li> element without indent

  1. #1
    Join Date
    Jul 2005
    Posts
    94

    Want to display <li> element without indent

    I want to display bulleted <li> items without the indent. I tried using the <li> tag without the <ul> tag, and that worked, but it is not valid XHTML. Does anyone have an idea of how I can accomplish this in valid XHTML? (I suspect that it would involve CSS, which is why I've posted here instead of the HTML forum). Thank you in advance.

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    ul {
    margin:0;
    margin-left:1em;
    padding-left:0;
    }
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Dec 2002
    Location
    Seattle, WA
    Posts
    1,676
    Code:
    ul, ol,
    li {
        margin: 0%;
        padding: 0%;
    }

  4. #4
    Join Date
    Jul 2005
    Posts
    94
    Fang and Shrine, thanks for your help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles