MyBB Community Forums

Full Version: My board's forums/sections and Who's Online tabs aren't centered
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2016-07-17, 11:29 PM)Ashley1 Wrote: [ -> ]It's a combination of tborder and tfoot classes in global.css. Both of them set a 1px border, tfoot sets it on top only.

.tborder {
background: #fff;
width: 100%;
margin: auto auto;
border: 1px solid #ccc;
padding: 1px;
}

.tfoot {
border-top: 1px solid #fff;
padding: 6px;
background: #ddd;
color: #666;
}

I deleted both borders but it still remains.
(2016-07-18, 12:23 AM)Oakwood Wrote: [ -> ]I deleted both borders but it still remains.

its not the border.. its the cell spacing.. add cellspacing="0"  to that table
(2016-07-18, 08:35 AM)mmadhankumar Wrote: [ -> ]
(2016-07-18, 12:23 AM)Oakwood Wrote: [ -> ]I deleted both borders but it still remains.

its not the border.. its the cell spacing.. add cellspacing="0"  to that table

The cellspacing text comes up red and nothing happens if I save.
Can you post the template contents? index_boardstats
(2016-07-19, 10:53 PM)Ashley1 Wrote: [ -> ]Can you post the template contents? index_boardstats

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
</tbody>
</table>
<table border="0" class="tborder">
<tr>
	<td class="tfoot" style="text-align: center">
		<span class="smalltext">
			{$logoutlink}
			<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
			<a href="showteam.php">{$lang->forumteam}</a>
      	    {$statspage}
		</span>
  	</td>
</tr>
</table>
<br />
It's because you have tfoot in a table that it appears like that. 

First try:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
</tbody>
<tr>
    <td class="tfoot" style="text-align: center">
        <span class="smalltext">
            {$logoutlink}
            <a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a>
             {$statspage}
        </span>
     </td>
</tr>
</table>
<br />

And you can also try this, which is the default template with birthdays and forumstats removed, like you have it: Not sure if you want the thead section or not, because the rest of your forum has them, but then you can just take the <thead></thead> section out.

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead{$collapsedthead['boardstats']}">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.png" 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">
{$whosonline}
<tr>
	<td class="tfoot" style="text-align:center">
		<span class="smalltext">
			{$logoutlink}
			<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
			<a href="showteam.php">{$lang->forumteam}</a>
			{$statspage}
		</span>
	</td>
</tr>
</tbody>
</table>
<br />
(2016-07-20, 11:10 PM)Ashley1 Wrote: [ -> ]It's because you have tfoot in a table that it appears like that. 

First try:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
</tbody>
<tr>
    <td class="tfoot" style="text-align: center">
        <span class="smalltext">
            {$logoutlink}
            <a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a>
             {$statspage}
        </span>
     </td>
</tr>
</table>
<br />

And you can also try this, which is the default template with birthdays and forumstats removed, like you have it: Not sure if you want the thead section or not, because the rest of your forum has them, but then you can just take the <thead></thead> section out.

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead{$collapsedthead['boardstats']}">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.png" 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">
{$whosonline}
<tr>
	<td class="tfoot" style="text-align:center">
		<span class="smalltext">
			{$logoutlink}
			<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
			<a href="showteam.php">{$lang->forumteam}</a>
			{$statspage}
		</span>
	</td>
</tr>
</tbody>
</table>
<br />
That worked, thanks.
Pages: 1 2 3