MyBB Community Forums

Full Version: Please align center this....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, this is my forum: http://www.mobihouse.co.cc/community

[attachment=21249]

I want that forums legend be align to center of category, please tell me how. I'm try all type: align center, center tags,.... but it's still be in left.

Here is my index_boardstats code:


<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" border="0" width="100%" align="center">
<thead>
<tr>
<td class="thead" colspan="4">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
<tr>
<td width="50%" class="tcat" colspan="2">
<span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span>
</td>
<td width="50%" class="tcat" colspan="2">
<span class="smalltext"><strong>{$lang->boardstats}</strong> [<a href="stats.php">{$lang->forumstats}</a>]</span>
</td>
</tr>
<tr>
{$whosonline}
{$forumstats}
</tr>
{$birthdays}
<tr>
<td class="trow1" colspan="4" style="float-align: center"><span class="smalltext">
<center><dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.png" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/off.png" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->no_new_posts}</dd>

	<dt><img src="{$theme['imgdir']}/offlock.png" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl></center>
</span>
</td>
</tr>
    <td class="tfoot" style="text-align: center" colspan="4">
        <span class="smalltext">
            <a href="misc.php?action=markread">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a> |
            {$logoutlink}
        </span>
    </td>
</tr>
</tbody>
</table>
<br />

Thanks you for everything.
Try removing the <center> tags and changing
<dl class="forum_legend smalltext">

to
<div align="center" class="forum_legend smalltext"> and </dl> to </div>
(2011-01-11, 10:04 AM)adbrad Wrote: [ -> ]Try removing the <center> tags and changing
<dl class="forum_legend smalltext">

to
<div align="center" class="forum_legend smalltext"> and </dl> to </div>

It did not work Sad
<td class="trow1" colspan="4" style="float-align: center"><span class="smalltext">

change "float-align" to "text-align"
Still didn't work Sad
Replace <center>...</center> with;
<div align="center">...</div>
Try replacing
<td class="trow1" colspan="4" style="float-align: center"><span class="smalltext">

with
<td class="trow1" colspan="4" align="center"><span class="smalltext">
Note that
float-align: center
is not valid HTML. Float is either left or right.