Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Right Align

  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Right Align

    Ok so the code I have is:
    <td class="row1" nowrap="nowrap"> <span>{$data['last_post']}<br /><b>{$this->ipsclass->lang['in']}:</b>&nbsp;{$data['last_topic']}<br /><b>{$this->ipsclass->lang['by']}:</b> {$data['last_poster']}</span>{$data['last_unread']}</td>
    I need to right align "{$data['last_unread']}". Is this possible? I cant figure out a way other than using a bunch of &nbsp;'s

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by Brotherhood313 View Post
    I need to right align "{$data['last_unread']}". Is this possible? I cant figure out a way other than using a bunch of &nbsp;'s
    Can you please show us some generated code? We don't know what the $data variables are holding?

  • #3
    New Coder
    Join Date
    Jul 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I thought it was:

    <a href="{$this->ipsclass->base_url}showtopic=$tid&amp;view=getlastpost" title="{$this->ipsclass->lang['tt_golast']}"><{LAST_POST}></a>
    But if I put:
    <a href="{$this->ipsclass->base_url}showtopic=$tid&amp;view=getlastpost" title="{$this->ipsclass->lang['tt_golast']}"><img src='style_images/<#IMG_DIR#>/lastpost.gif' align='right'></a>
    It does align it right and the image is there. But the button does not function properly.

  • #4
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    Try

    style="float:right"

    instead of

    align="right"

    HTH
    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

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