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

howto change the indent

0 views
Skip to first unread message

Lueder

unread,
May 2, 2003, 5:36:36 AM5/2/03
to
Hi !

I am looking for solution how to change the the indent of an ordered list in
HTML (<ol>)

The style "text-indent" just grows the indent.

Thx in advance

Lueder


Chris Jarvi [MSFT]

unread,
May 5, 2003, 2:44:02 PM5/5/03
to
Hi Lueder

You're on the right track using "text-indent." List items are positioned
relatively, so you can think of the default position as being "0." If you
need to increase the indent, set the text-indent to a positive number, such
as:

<LI STYLE="text-indent: 5px">some text here

If you need to decrease the indent, set the text-indent to a negative
number, such as:

<LI STYLE="text-indent: -5px">some text here

When setting the text-indent to a negative number, be careful not to set it
too large else the item will partially display off the page.

Another way to do this is to explicitly set the "position" to relative and
then use the "left" style, such as:

<LI STYLE="position:relative;left:-5px">some text here

Hope this helps.
Chris Jarvi

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Included script samples, if any, are subject to terms specified at
http://www.microsoft.com/info/copyright.htm


"Lueder" <l.pr...@init-gmbh.de> wrote in message
news:OsliQ3IE...@TK2MSFTNGP12.phx.gbl...

0 new messages