How to Get this Code Aligned Right?

Discussion in 'PHP' started by Brandon the Great, Aug 8, 2008.

Thread Status:
Not open for further replies.
  1. #1
    Newbie alert!

    How do I get the following code aligned right? It's the basic code to show how many comments you have on a Wordpress blog.

    <?php comments_popup_link('Zero comments', '1 comment', '% comments'); ?>
    
    Code (markup):
     
    Brandon the Great, Aug 8, 2008 IP
  2. CarcaBot

    CarcaBot Active Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #2
    U can arange lyke in 1 of this 2 examples usig div or table ...!
    1: Div

    <div align="right"><?php comments_popup_link('Zero comments', '1 comment', '% comments'); ?></div>
    Code (markup):
    2: Table

    <td align="right">
    <?php comments_popup_link('Zero comments', '1 comment', '% comments'); ?>
    </td>
    Code (markup):
     
    CarcaBot, Aug 8, 2008 IP
  3. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #3
    <p style="text-align:right;"><?php comments_popup_link('Zero comments', '1 comment', '% comments'); ?></p>
     
    YIAM, Aug 8, 2008 IP
  4. Brandon the Great

    Brandon the Great Banned

    Messages:
    170
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Thank you, YIAM!
     
    Brandon the Great, Aug 8, 2008 IP
Thread Status:
Not open for further replies.