Forums

Aligning Problem in CSS (5 posts)

  1. bk
    Member
    Posted 7 years ago #

    http://www.xeenat.com/2006/02/05/yay-for-psp/

    Trying to move the numbers on the left to the right side? How do I do it?

    .commentlist li, #commentform input, #commentform textarea {
    font: 11px 'Verdana', Tahoma, Arial, Sans-Serif;
    margin: 15px 0 3px;
    padding: 5px 10px 3px;
    /*list-style: none;*/
    }

    I believe that's the one that does the numbers. I tried adding text align: right; but then the whole comment thing moves to the right.

    Any idea?

    Any help will be greatly appreciated!

  2. bk
    Member
    Posted 7 years ago #

    Basically, I'm trying to add an ordered comment list/numbers using CSS so it shows on the right hand-side instead of left.

    Anyone please?

  3. Sam_a
    Member
    Posted 7 years ago #

    I don't think there's a way to put ordered list markers on the right until CSS3. :)

    But you could use

    #commentlist { text-align: right;}

    to align all of it to the right.

    And you could add faux markers (not numbers, though) on the right using background images.

  4. bk
    Member
    Posted 7 years ago #

    Adding #commentlist { text-align: right;} would move everything to the right hand-side? But I only want to move the numbers. If possible.

    Can't I make like a div.commentsomething and then position it accordingly?

  5. bk
    Member
    Posted 7 years ago #

    I just need to add comment numbers on the right side. Is it possible? I used <?php echo $com_count++; ?> before but since I implemented Ajax commenting, I have to do it using CSS.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.