PDA

View Full Version : Aligning text inside li-tag



matti503
04 Sep 2006, 12:56 AM
I have a- and p-tags inside li-tag.

li-tag has width of 10em, is there any way to align the p-tag in to the right end?

Wickham
04 Sep 2006, 01:20 AM
You don't need the p tag as you can make one li tag align right.
Or you can put a ptag inside an li tag and align that right.
Either of these:-
<ul>
<li style="width: 10em; text-align: right;">text</li>
<li style="width: 10em;"><p style="text-align: right;">text row2 in p tag</p></li>
</ul>