Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Aligning a numeric <OL> using CSS?

0 views
Skip to first unread message

Confused @ Times

unread,
May 16, 2001, 4:20:52 PM5/16/01
to
Bah. Please forgive me for cross-posting...

I'm not sure if I'm missing the obvious; but does anyone know how I can
align a list of numbered items with the period following each number?

(allow me to illustrate)

Currently, the list looks like this:
1. blah blah
2. blah blah
....
9. blah blah
10. blah blah


1 thru 9 are ok, but as you can see the number 10 is out of alignment to
the right. I'd rather have it look like this: (with the numbers
justified by the period following the number)
1. blah blah
2. blah blah
....
9. blah blah
10. blah blah

I know I've seen it somewhere, but for the life of me I can't remember
where. All the alignment properties I have tried affect the text
following the list item number, not the number itself.

Ideas?

I'm beginning to understand how much that wascilly wabbit ticks off
Elmer Fudd.

Thanks in advance..

Michael Wender

unread,
May 17, 2001, 6:34:48 AM5/17/01
to
In article <MPG.156c8fcf4...@news.telusplanet.net>, Confused @
Times <conf...@times.doh> says...
Can't exactly figure out your problem.
If you don't apply any alignment to the <li>(!)s
they behave just like you want them to.
BUT: If you use <center> or any other alignment,
it won't work this way.
If that's what you're problem is, place your list
inside a DIV :
------------
<DIV style="text-align:left;width:1%">
<OL>
<LI>blah blah blah
<LI>blah blah blah bla blah
...
</OL>
</DIV>
------------

regards,
Michael Wender

0 new messages