Webboard

Pełna wersja: Wyrównanie tekstu w thead
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.8.4
adres forum: cannabis4fun.xaa.pl/index.php
na czym polega problem (screen, opis, komunikaty):

http://screenshooter.net/100243845/pxktrkk

Chciałbym to wyrównać. Ty ta belka była równo z tą od shoutboxa

Kod PHP:
<table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder">
<
thead>
<
tr>
    <
div style="margin-top: 0.3%;"><td class="thead{$expthead}colspan="4"></div>
<
div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}title="{$expaltext}/></div>
<
div><strong><a href="{$forum_url}title="{$forum['description']}">{$forum['name']}</a></strong></div>
</
td>
</
tr>
</
thead>
</
table>
<
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder border_forum">
<
tbody  style="{$expdisplay}id="cat_{$forum['fid']}_e">
    {
$sub_forums}
  </
tbody>
</
table>
<
br /> 

To forum_bit_1 to pierwsze tam :D
W szablonie index na początku <div> z sidebarem masz dwa razy <br />
Snake_ napisał(a):W szablonie index na początku <div> z sidebarem masz dwa razy <br />

nigdzie tam nie widze 2x <br />
Podaj zawartość tego szablonu.
Kod PHP:
<html>
<
head>
<
title>{$mybb->settings['bbname']}</title>
{
$headerinclude}
<
script type="text/javascript">
<!--
    
lang.no_new_posts "{$lang->no_new_posts}";
    
lang.click_mark_read "{$lang->click_mark_read}";
// -->
</script>
</
head>
<
body>
{
$header}
    
     <
br>
<
table border="0" cellspacing="1" cellpadding="3" class="tborder">
<
tr>
<
td class="thead" colspan="8">
<
strong>Lista serwerów Cannabis4Fun.pl</strong>
</
td>
</
tr>
<
td class="tcat" colspan="1"><span class="smalltext"><strong><center>Rodzaj</strong></span></td>
<
td class="tcat" colspan="0"><span class="smalltext"><strong><center>Nazwa:</strong></span></td>
<
td class="tcat" colspan="0"><span class="smalltext"><strong><center>IP:</strong></span></td>
<
td class="tcat" colspan="0"><span class="smalltext"><strong><center>Monitoring:</strong></span></td>
<
td class="tcat" colspan="0"><span class="smalltext"><strong><center>Połącz:</strong></span></td>
<
td class="tcat" colspan="0"><span class="smalltext"><strong><center>HLTV:</strong></span></td>
    <
tr>
<
td class="trow2"> <span class="smalltext"><center><img src="images/serversboard/cs16.png"</span></td>
<
td class="trow2"> <span class="smalltext"><center>Cannabis4Fun.pl [4Fun]</span></td>
<
td class="trow2"> <span class="smalltext"><center>91.185.185.122:27048</span></td>
<
td class="trow2"> <span class="smalltext"><center><a href="http://www.gametracker.com/server_info/91.185.185.122:27048/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/91.185.185.122:27048/b_350_20_206D35_174423_FFFFFF_000000.png" border="0" width="350" height="20" alt=""/></a></span></td>
<
td class="trow2"> <span class="smalltext"><center><a href="steam://connect/91.185.185.122:27048"><img src="images/serversboard/steam.png"</a></span>
<
td class="trow2"> <span class="smalltext"><center><a href="#"><img src="images/serversboard/bhltv.png"></a></span></td>
    <
tr>
<
td class="trow2"> <span class="smalltext"><center><img src="images/serversboard/cs16.png"</span></td>
<
td class="trow2"> <span class="smalltext"><center>Cannabis4Fun.pl [FreeForAll]</span></td>
<
td class="trow2"> <span class="smalltext"><center>185.38.249.70:27221</span></td>
<
td class="trow2"> <span class="smalltext"><center><a href="http://www.gametracker.com/server_info/185.38.249.70:27221/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/185.38.249.70:27221/b_350_20_206D35_174423_FFFFFF_000000.png" border="0" width="350" height="20" alt=""/></a></span></td>
<
td class="trow2"> <span class="smalltext"><center><a href="steam://connect/185.38.249.70:27221"><img src="images/serversboard/steam.png"</a></span>
<
td class="trow2"> <span class="smalltext"><center><a href="http://hltv.zabijaka.pl/id/26683.html"><img src="images/serversboard/hltv.png"></a></span></td>
  <
tr>
</
table><br>
    
    <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="sideblock">
<
tr>
<
td class="thead"><strong>
<
center>Sponsorzy/Partnerzy:</center>
</
strong></td>
</
tr>
<
tr>
<
td class="trow1">
<
center><marquee behavior="scroll" align="center" direction="left"
height="85" speed="0.7" scrollamount="3" scrolldelay="20"
onmouseover="this.stop()" onmouseout="this.start()">

    <
a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <
a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <
a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <
a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <
a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>

</
marquee></center>
</
td>
</
td>
</
tr>
</
table>
    
<
class="buttons" style="float: right;"><class="fa fa-angle-right"></i></a>
<
class="clickedbuttons" style="float: right;"><class="fa fa-angle-left"></i></a>
<
div class="forums" style="float: left;width: 80%;">
{
$dvz_shoutbox}    
{
$forums}
</
div>
<
div class="sidebar" style="float: right;width: 19%;">
  <
table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder border_table" style="clear: both;">
<
tr>
<
td class="thead_sidebox" colspan="2">

Kontakt z administracją

</td>
</
tr>

<
tr>
<
td class="trow2 post_content ">
  <
div><a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=2"><img src="http://cannabis4fun.xaa.pl/uploads/avatars/avatar_2.jpg?dateline=1427226493" vspace="3" hspace="3" alt="" width="50" height="50" style="float:left;"></a>
<
div>&nbsp;<a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=2"><span style="text-shadow: 1px 1px 10px #FF0000; color: #FF0000; font-weight: bold; background: url(http://www.przemo.org/phpBB2/forum/files/gwiazdkired_158.gif)"><b>BlanciK</b></span></a><a></a></div><a>
</
a><div><a>&nbsp;<font color="#898989"><b>GG:</b52613326</font></a><font color="#898989"><a href="gg:52613326"><img src="http://www.gadu-gadu.pl/users/status.asp?id=52613326&amp;styl=1" border="0" alt="GG: 52613326"></a></font></div>
<
div><font color="#898989"><bSteam:</b> <a href="http://steamcommunity.com/id/BlanciK33">BlanciK33</a></font></div>
<
br>  
<
div><a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=9"><img src="http://cannabis4fun.xaa.pl/uploads/avatars/avatar_9.jpg?dateline=1427904203" vspace="3" hspace="3" alt="" width="50" height="50" style="float:left;"></a>
<
div>&nbsp;<a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=9"><span style="text-shadow: 1px 1px 10px #FF0000; color: #FF0000; font-weight: bold; background: url(http://www.przemo.org/phpBB2/forum/files/gwiazdkired_158.gif)"><b>mejzi</b></span></a><a></a></div><a>
</
a><div><a>&nbsp;<font color="#898989"><b>GG:</b44786767</font></a><font color="#898989"><a href="gg:44786767"><img src="http://www.gadu-gadu.pl/users/status.asp?id=44786767&amp;styl=1" border="0" alt="GG: 44786767"></a></font></div>
<
div><font color="#898989"><bSteam:</b> <a href="http://steamcommunity.com/id/MEJZI_XD">MEJZI_XD</a></font></div>      

</
div></div></td>
</
tr>
</
td>
<
br><br>
{
$steamgroup}    
{
$topStats['LastActiveThreads']}
{
$topStats['LastThreads']}
{
$topStats['MostViews']}
{
$topStats['Posters']}
{
$topStats['Reputation']}
{
$topStats['Referrals']}
{
$topStats['Timeonline']}
{
$topStats['Moderators']}
{
$topStats['NewestUsers']}
</
table>
</
div>

<
br class="clear" />
{
$boardstats}
<!--
<
dl class="forum_legend smalltext">
    <
dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>
    <
dd>{$lang->new_posts}</dd>

    <
dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>
    <
dd>{$lang->no_new_posts}</dd>

    <
dt><span class="forum_status forum_offlock" title="{$lang->forum_locked}"></span></dt>
    <
dd>{$lang->forum_locked}</dd>

    <
dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
    <
dd>{$lang->forum_redirect}</dd>
</
dl>
-->
{
$footer}
</
body>
</
html
Łapaj, przerobiłem lekko u siebie, sprawdź, jakby nie ten teges, to pisz.

Kod:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
    lang.no_new_posts = "{$lang->no_new_posts}";
    lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="3" class="tborder">
<tr>
<td class="thead" colspan="8">
<strong>Lista serwerów Cannabis4Fun.pl</strong>
</td>
</tr>
<td class="tcat" colspan="1"><span class="smalltext"><strong><center>Rodzaj</strong></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><strong><center>Nazwa:</strong></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><strong><center>IP:</strong></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><strong><center>Monitoring:</strong></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><strong><center>Połącz:</strong></span></td>
<td class="tcat" colspan="0"><span class="smalltext"><strong><center>HLTV:</strong></span></td>
    <tr>
<td class="trow2"> <span class="smalltext"><center><img src="images/serversboard/cs16.png"</span></td>
<td class="trow2"> <span class="smalltext"><center>Cannabis4Fun.pl [4Fun]</span></td>
<td class="trow2"> <span class="smalltext"><center>91.185.185.122:27048</span></td>
<td class="trow2"> <span class="smalltext"><center><a href="http://www.gametracker.com/server_info/91.185.185.122:27048/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/91.185.185.122:27048/b_350_20_206D35_174423_FFFFFF_000000.png" border="0" width="350" height="20" alt=""/></a></span></td>
<td class="trow2"> <span class="smalltext"><center><a href="steam://connect/91.185.185.122:27048"><img src="images/serversboard/steam.png"</a></span>
<td class="trow2"> <span class="smalltext"><center><a href="#"><img src="images/serversboard/bhltv.png"></a></span></td>
    <tr>
<td class="trow2"> <span class="smalltext"><center><img src="images/serversboard/cs16.png"</span></td>
<td class="trow2"> <span class="smalltext"><center>Cannabis4Fun.pl [FreeForAll]</span></td>
<td class="trow2"> <span class="smalltext"><center>185.38.249.70:27221</span></td>
<td class="trow2"> <span class="smalltext"><center><a href="http://www.gametracker.com/server_info/185.38.249.70:27221/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/185.38.249.70:27221/b_350_20_206D35_174423_FFFFFF_000000.png" border="0" width="350" height="20" alt=""/></a></span></td>
<td class="trow2"> <span class="smalltext"><center><a href="steam://connect/185.38.249.70:27221"><img src="images/serversboard/steam.png"</a></span>
<td class="trow2"> <span class="smalltext"><center><a href="http://hltv.zabijaka.pl/id/26683.html"><img src="images/serversboard/hltv.png"></a></span></td>
  <tr>
</table><br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="sideblock">
<tr>
<td class="thead"><strong>
<center>Sponsorzy/Partnerzy:</center>
</strong></td>
</tr>
<tr>
<td class="trow1">
<center><marquee behavior="scroll" align="center" direction="left"
height="85" speed="0.7" scrollamount="3" scrolldelay="20"
onmouseover="this.stop()" onmouseout="this.start()">

    <a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>
    <a href="http://graphic-art.pl"><img src="http://graphic-art.pl/Graphic-Art.png"/></a>

</marquee></center>
</td>
</td>
</tr>
</table>
<br>
<div class="forums" style="float: left;width: 76%;">
{$dvz_shoutbox}<br>{$forums}
</div>
<div class="sidebar" style="float: right;width: 23%;">{$steamgroup}<br>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder border_table">
<tr>
<td class="thead_sidebox" colspan="2">

Kontakt z administracją

</td>
</tr>

<tr>
<td class="trow2 post_content ">
  <div><a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=2"><img src="http://cannabis4fun.xaa.pl/uploads/avatars/avatar_2.jpg?dateline=1427226493" vspace="3" hspace="3" alt="" width="50" height="50" style="float:left;"></a>
<div>&nbsp;<a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=2"><span style="text-shadow: 1px 1px 10px #FF0000; color: #FF0000; font-weight: bold; background: url(http://www.przemo.org/phpBB2/forum/files/gwiazdkired_158.gif)"><b>BlanciK</b></span></a><a></a></div><a>
</a><div><a>&nbsp;<font color="#898989"><b>GG:</b> 52613326</font></a><font color="#898989"><a href="gg:52613326"><img src="http://www.gadu-gadu.pl/users/status.asp?id=52613326&amp;styl=1" border="0" alt="GG: 52613326"></a></font></div>
<div><font color="#898989"><b> Steam:</b> <a href="http://steamcommunity.com/id/BlanciK33">BlanciK33</a></font></div>
<br>  
<div><a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=9"><img src="http://cannabis4fun.xaa.pl/uploads/avatars/avatar_9.jpg?dateline=1427904203" vspace="3" hspace="3" alt="" width="50" height="50" style="float:left;"></a>
<div>&nbsp;<a href="http://cannabis4fun.xaa.pl/member.php?action=profile&uid=9"><span style="text-shadow: 1px 1px 10px #FF0000; color: #FF0000; font-weight: bold; background: url(http://www.przemo.org/phpBB2/forum/files/gwiazdkired_158.gif)"><b>mejzi</b></span></a><a></a></div><a>
</a><div><a>&nbsp;<font color="#898989"><b>GG:</b> 44786767</font></a><font color="#898989"><a href="gg:44786767"><img src="http://www.gadu-gadu.pl/users/status.asp?id=44786767&amp;styl=1" border="0" alt="GG: 44786767"></a></font></div>
<div><font color="#898989"><b> Steam:</b> <a href="http://steamcommunity.com/id/MEJZI_XD">MEJZI_XD</a></font></div>      

</div></div></td>
</tr>
</td>

{$topStats['LastActiveThreads']}
{$topStats['LastThreads']}
{$topStats['MostViews']}
{$topStats['Posters']}
{$topStats['Reputation']}
{$topStats['Referrals']}
{$topStats['Timeonline']}
{$topStats['Moderators']}
{$topStats['NewestUsers']}
</table>
</div>

<br class="clear" />
{$boardstats}
<!--
<dl class="forum_legend smalltext">
    <dt><span class="forum_status forum_on" title="{$lang->new_posts}"></span></dt>
    <dd>{$lang->new_posts}</dd>

    <dt><span class="forum_status forum_off" title="{$lang->no_new_posts}"></span></dt>
    <dd>{$lang->no_new_posts}</dd>

    <dt><span class="forum_status forum_offlock" title="{$lang->forum_locked}"></span></dt>
    <dd>{$lang->forum_locked}</dd>

    <dt><span class="forum_status forum_offlink" title="{$lang->forum_redirect}"></span></dt>
    <dd>{$lang->forum_redirect}</dd>
</dl>
-->
{$footer}
</body>
</html>

:)
Dzięki. Działa jak trzeba.