MyBB Community Forums

Full Version: mybb portal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i have had some problems with shortening the annoucement column so i can add custom blocks on the right. the "tborder" gets smaller with a gap and so does the "thead". If this is confusing just look at the picture!

heres my code
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<table border="0" width="80%">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
<table border="0" width="80%">
</tr>
<tr>
<td class="trow2" align="left">
<span class="smalltext">{$lang->posted_by} <a href="{$mybb->settings['bburl']}/{$announcement['profilelink']}">{$announcement['username']}</a>  - {$anndate} {$anntime} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">
    <tr>
        {$avatar}
        <td class="trow2">
            <p>
                {$message}
            </p>
            {$post['attachments']}
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2" valign="bottom">
            <span class="smalltext">
                <a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/printable.gif" alt="{$lang->print_this_item}" title="{$lang->print_this_item}" /></a>&nbsp;<a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/send.gif" alt="{$lang->send_to_friend}" title="{$lang->send_to_friend}" /></a>
            </span>
        </td>
    </tr>
</table>
</td>
</tr>
</table>
<br /> 

The problem is shown below. Big Grin
Please keep discussion to one thread. Be patient.

http://community.mybboard.net/thread-48115.html