Results 1 to 2 of 2

Thread: Aligning text inside li-tag

  1. #1
    Join Date
    Sep 2006
    Location
    Finland
    Posts
    1

    Aligning text inside li-tag

    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?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    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>
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •