...

View Full Version : Right Align



Brotherhood313
08-05-2007, 01:50 AM
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

koyama
08-05-2007, 02:40 AM
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?

Brotherhood313
08-05-2007, 03:04 AM
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.

whizard
08-05-2007, 04:55 AM
Try

style="float:right"

instead of

align="right"

HTH
Dan



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum