Click to See Complete Forum and Search --> : Ordered List Without Indentation


sampleman
12-15-2003, 04:20 PM
Hi,

I am making an ordered list but it puts an indentation
How would I remove the indentation?

heres a sample with what I'm using

<ol>
<li>Testa
<li>Testb
<li>Testc
<li>Testd
</ol>

I'd like it to look like this
1.Testa
2.Testb
3.Testc
4.Testd

Thanks in advance

Aronya1
12-15-2003, 04:32 PM
<ol style=margin-left:"0">
<li>Testa
<li>Testb
<li>Testc
<li>Testd
</ol>

PeOfEo
12-15-2003, 04:34 PM
I think you made a booboo
style="margin-left:0px;"
to make it numbered use
<li type="1">

sampleman
12-15-2003, 04:35 PM
Hi,

I tried what you suggested and it works but it doesnt list the numbers.
I also need the numbers

Thanks

Aronya1
12-15-2003, 04:36 PM
You might be right, but it works fine without the 'px'. At least in a quick test with IE.

PeOfEo
12-15-2003, 04:36 PM
I edited mine w/ the nubers, and I was not correcting the px, I was correcting the style:margin-left="", voodoo css. :D

Aronya1
12-15-2003, 05:07 PM
Hah! Missed that. That's why I hang out here! Thanks.

PeOfEo
12-15-2003, 05:58 PM
heh I have made typos and brain farts before too, nothing beats the stlye="border:0px;'

pyro
12-15-2003, 08:15 PM
Technically, if you are specifying 0, you should probably use 0 or none, as 0 can not be measured in units.

PeOfEo
12-15-2003, 08:20 PM
ahhhhhhh get all technical on me... I was only trying to point out a syntax screw up.

pyro
12-15-2003, 08:24 PM
Sorry... :p

PeOfEo
12-15-2003, 08:26 PM
'salright :o Ill let that one go

Aronya1
12-15-2003, 08:41 PM
One for me! I don't care if it was by accident...

Jeff Mott
12-15-2003, 09:04 PM
as 0 can not be measured in unitsWhy not? It just happens to be the one number where the actual value is equivalent no matter the units (for all the units in the CSS spec anyway). Just because 0px == 0pt does not mean either form is wrong.style="margin-left: 0"Note also that Netscape (Mozilla) uses padding rather than margin. So to accomodate both you should havemargin-left: 0; padding-left: 0I tried what you suggested and it works but it doesnt list the numbersI wasn't sure if this was still a problem, but this is because the numbers that are automatically inserted are placed within that extra marginal space, which we have just eliminated. You'll have to keep some margin there to allow room for the characters. 2em seems the smallest you can go before IE starts chopping off the numbers.margin-left: 2em; padding-left: 0

Paul Jr
12-15-2003, 09:08 PM
Note also that Netscape (Mozilla) uses padding rather than margin.
Along with Opera And FireBird.

pyro
12-15-2003, 09:42 PM
I definitly worded it wrong, but couldn't come up with anything better at the time. My main pont was that 0 is 0, and there is no point in specifying the unit of measurement, as like you said, 0 is equivalent among all units. It's really a matter of personal preference more than anything, I suppose.

Jeff Mott
12-15-2003, 09:53 PM
lol, that's alright. I think it was the "can not" part that made it sound like you were stating a fact rather than a preference.

PeOfEo
12-15-2003, 10:30 PM
HA I AM ALWAYS RIGHT, sometimes!