MyBB Community Forums

Full Version: Align buttons left and right in template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When making a new post, I got fed up of having to return to the forum to make another post, so I edited Show Thread Templates > showthread_newreply and added the "New Thread" button next to the reply button as below

<a href="newthread.php?fid={$fid}"><img src="{$theme['imglangdir']}/newthread.gif" alt="{$lang->post_thread}" title="{$lang->post_thread}" /></a>&nbsp;&nbsp;
<a href="newreply.php?tid={$tid}"><img src="{$theme['imglangdir']}/newreply.gif" alt="{$lang->post_reply_img}" title="{$lang->post_reply_img}" /></a>&nbsp;

However, I wanted the new thread button on the left of the page and the new reply button on the right. I tried putting each link in a <span> and using the below for each link, but that did not work.
<span style="float:left;"> & <span style="float:right;">

Can anyone help me to achieve this alignment please.
<span> targets text. Don't hold me to this but it ought to work if you replace span with div.
You were right... that fixed it, although it did force a linebreak.

I can live with that. Thank you very much Big Grin