Results 1 to 8 of 8

Thread: Annoying <ul> indent [resolved]

  1. #1

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935

    Annoying <ul> indent [resolved]

    How can I get rid of the automatic indenting caused by the <ul> tag? For example, I want this:

    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;• Stuff here
    To look like
    • Stuff here
    Last edited by filburt1; Dec 19th, 2001 at 05:19 PM.

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    Uhm... don't use UL, or manipulate it in CSS.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272
    <ul style="margin-left:0">Stuff here</ul>

  4. #4

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    Originally posted by thinktank2
    <ul style="margin-left:0">Stuff here</ul>
    Didn't work. BTW, I'm using it for unordered lists, like this:
    Code:
    <ul style="margin-left:0">
        <li>stuff</li>
    </ul>

  5. #5
    Hyperactive Member thinktank2's Avatar
    Join Date
    Nov 2001
    Location
    Arctic
    Posts
    272
    <ul>
    <li style="margin-left:-1.5em" type="disc">Stuff here</li>
    </ul>

  6. #6

    Thread Starter
    Member filburt1's Avatar
    Join Date
    Aug 1999
    Posts
    6,935
    That worked, thanks.

  7. #7
    Tygur
    Guest
    I don't know if it's bad practice or what, but the indent goes away if you just put the <li> elements without the <ul> elements.

  8. #8
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I don't think your HTML would validate...

    The point of the list tags is to present data as a list to the user, not to really specify the indent presentation, CSS is for that.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

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



Click Here to Expand Forum to Full Width