|
-
Dec 19th, 2001, 04:36 PM
#1
Thread Starter
Member
Annoying <ul> indent [resolved]
How can I get rid of the automatic indenting caused by the <ul> tag? For example, I want this:
• Stuff here
To look like
Last edited by filburt1; Dec 19th, 2001 at 05:19 PM.
-
Dec 19th, 2001, 04:40 PM
#2
Frenzied Member
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.
-
Dec 19th, 2001, 04:51 PM
#3
Hyperactive Member
<ul style="margin-left:0">Stuff here</ul>
-
Dec 19th, 2001, 04:59 PM
#4
Thread Starter
Member
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>
-
Dec 19th, 2001, 05:07 PM
#5
Hyperactive Member
<ul>
<li style="margin-left:-1.5em" type="disc">Stuff here</li>
</ul>
-
Dec 19th, 2001, 05:18 PM
#6
Thread Starter
Member
That worked, thanks.
-
Dec 20th, 2001, 05:19 AM
#7
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.
-
Dec 20th, 2001, 12:01 PM
#8
Black Cat
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|