Previous Message
Next Message

Placing list item bullets on the right?

Sent by Jukka K. Korpela on 5 April 2005 20:08


On Tue, 5 Apr 2005, Denis Defreyne wrote:

> I'd like to know whether it is possible to place the bullets of a list
> on the _right_ of a list item.

Yes, but it gets a bit tricky if the list items contain directionally
neutral characters. Normal Latin letters are not directionally neutral,
but e.g. parentheses () are.

Basically you could use <ul class="right"> and

ul.right { direction: rtl;
           width: 8em; }

assuming that 8em is sufficient for the longest item.

If an item contains directionally neutral characters, you can use
markup like

<li><bdo>foo (bar)</bdo></li>

and the additional rule

ul.right li bdo { direction: ltr; }

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: