Przedszkolak
Postów: 7
Data rejestracji: 05.01.2007 09:09
|
Witam.
Mam taki problem który niedawno zauważyłem, na stronie. Pisze skórki pod ten CMS, i mnie zaskoczyła pewna sprawa, kiedy piszę posta na swoim forum i go zacytuje lub zaznaczę jako kod źródłowy nagle tabelka dostaje dziwnych wymiarów i wychodzi poza div z treścią nie wiem co jest grane ale wygląda na to że ma jakiś styl lokalny który wymusza szerokość tabeli, jak to zablokować? Oto adres problemu: http://archangeli...12#post_12
Może to problem jakiejś zmiennej której nie podałem :(
Z góry dziękuje.
Plik theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."grafika/bulet.png' alt='' style='border:0' />");
function render_page($license=false) {
global $aidlink, $locale, $settings, $main_style, $userdata;
echo "<div style='width:".THEME_WIDTH.";' class='$main_style'>\n";
echo "<div id='glowna'>";
//Baner
echo '<div class="baner">';
//echo '<div style="float:left; width:1000px; height:141px; ">'.showbanners().'</div>';
echo '<div class="linkibaneru">';
echo '<a href="'.BASEDIR.'index.php"><img src="'.THEME.'grafika/home.png" id="forump" onmouseover="document.getElementById(\'forump\').src=\''.THEME.'grafika/home2.png\'" onmouseout="document.getElementById(\'forump\').src=\''.THEME.'grafika/home.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'forum/index.php"><img src="'.THEME.'grafika/forum.png" id="kontaktp" onmouseover="document.getElementById(\'kontaktp\').src=\''.THEME.'grafika/forum2.png\'" onmouseout="document.getElementById(\'kontaktp\').src=\''.THEME.'grafika/forum.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'downloads.php"><img src="'.THEME.'grafika/download.png" id="serweryp" onmouseover="document.getElementById(\'serweryp\').src=\''.THEME.'grafika/download2.png\'" onmouseout="document.getElementById(\'serweryp\').src=\''.THEME.'grafika/download.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'index.php"><img src="'.THEME.'grafika/sluchaj.png" id="multimediap" onmouseover="document.getElementById(\'multimediap\').src=\''.THEME.'grafika/sluchaj2.png\'" onmouseout="document.getElementById(\'multimediap\').src=\''.THEME.'grafika/sluchaj.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'index.php"><img src="'.THEME.'grafika/ramowka.png" id="wyzwijp" onmouseover="document.getElementById(\'wyzwijp\').src=\''.THEME.'grafika/ramowka2.png\'" onmouseout="document.getElementById(\'wyzwijp\').src=\''.THEME.'grafika/ramowka.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'index.php"><img src="'.THEME.'grafika/ekipa.png" id="skladklanup" onmouseover="document.getElementById(\'skladklanup\').src=\''.THEME.'grafika/ekipa2.png\'" onmouseout="document.getElementById(\'skladklanup\').src=\''.THEME.'grafika/ekipa.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'photogallery.php"><img src="'.THEME.'grafika/galeria.png" id="linkip" onmouseover="document.getElementById(\'linkip\').src=\''.THEME.'grafika/galeria2.png\'" onmouseout="document.getElementById(\'linkip\').src=\''.THEME.'grafika/galeria.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'index.php"><img src="'.THEME.'grafika/reklama.png" id="reklamap" onmouseover="document.getElementById(\'reklamap\').src=\''.THEME.'grafika/reklama2.png\'" onmouseout="document.getElementById(\'reklamap\').src=\''.THEME.'grafika/reklama.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'contact.php"><img src="'.THEME.'grafika/kontakt.png" id="kontakt" onmouseover="document.getElementById(\'kontakt\').src=\''.THEME.'grafika/kontakt2.png\'" onmouseout="document.getElementById(\'kontakt\').src=\''.THEME.'grafika/kontakt.png\'" alt="" border="0" /></a>';
echo '<a href="'.BASEDIR.'weblinks.php"><img src="'.THEME.'grafika/linki.png" id="linki" onmouseover="document.getElementById(\'linki\').src=\''.THEME.'grafika/linki2.png\'" onmouseout="document.getElementById(\'linki\').src=\''.THEME.'grafika/linki.png\'" alt="" border="0" /></a>';
echo "<div style='margin:3px 8px;'><a href='".BASEDIR."index.php'>Encyklopedia gier / </a><a href='".BASEDIR."index.php'>Zapowiedzi / </a><a href='".BASEDIR."index.php'>Recenzje / </a><a href='".BASEDIR."index.php'>Trailery / </a><a href='".BASEDIR."index.php'>Tipsy i trick / </a><a href='".BASEDIR."photogallery.php'>Tapety na pulpit / </a><a href='".BASEDIR."photogallery.php'>Galeria / </a><a href='".BASEDIR."search.php'>Szukaj / </a></div>";
echo '</div>';
echo "</div>";
//Tresc
echo "<div id='trescgora'></div><div id='tresctresc'>";
if (LEFT) { echo"<div id='bocznypanellewy'>".LEFT."<div class='stopkapaneli'> </div>\n</div>"; }
echo "<div id='tresc'>".U_CENTER.CONTENT.L_CENTER."</div>\n";
if (RIGHT) { echo"<div id='bocznypanelprawy'>".RIGHT."<div class='stopkapaneli'> </div></div>\n"; }
//Stopka
echo "<div class='stopka'>";
echo "<div style='float:left; width: 45%;'>";
if ($license == false) {
echo showcopyright();
}
echo "</div>\n";
echo "<div style='float:right; width: 40%; text-align: right;'>".showcounter()."</div>";
echo "</div>\n";
echo "</div>\n";
echo "</div>\n</div>\n";
}
function render_news($subject, $news, $info) {
echo "<div class='tytulnews'>$subject</div>\n";
echo "<div class='trescnews'>". $news."</div>\n";
echo "<div class='newsstopka'>\n";
echo "<div style='float:left; margin-left: 10px; padding-top: 9px;'>Dodał: ";
echo "<a style='color:#000;' href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo " dnia: ".showdate("longdate", $info['news_date']);
echo "</div><div style='float:right; margin-right: 10px;'>".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'><img src='".THEME."grafika/wiecej.png' alt='' style='border:0' /></a>" : "")."</div>";
echo "</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='tytularticle'><div class='margintytul'>$subject  \n</div></div>\n";
echo "<div class='trescarticle'><div class='margintresc'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "</div>\n";
echo "<div class='newsstopka'>\n";
echo "<div style='float:left;>".articleposter($info," ")."</div><div style='float:right;'> Komentarzy (".$info['article_comments'].") ".itemoptions("N",$info['article_id'])."</div>";
echo "</div>\n";
}
function opentable($title) {
echo "<div class='tytulstrona'><div class='margintytul'>$title</div>\n</div>\n";
echo "<div class='trescstrona'><div class='margintresc'>\n";
}
function closetable() {
echo "</div>\n";
echo "</div>\n";
echo "<div class='stronastopka'></div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='obramowaniepaneli'>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div class='tytulpaneli'>".panelbutton($state,$boxname)."</div>\n";
}
echo "<div class='tytulpaneli'>".$title."</div>\n";
echo "<div class='trescpaneli'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "\n</div>\n</div>\n";
}
?>
Plik styles.css:
body
{
background-color:#1c1c1c;
font-family : "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
font-size : 12px;
color: #5a5a5a;
margin: 0;
padding: 0;
}
.side-both, .side-left, .side-right
{
width: 100%;
}
#glowna
{
width: 1003px;
margin: 0px auto;
}
.baner
{
width: 1000px;
height: 295px;
background-position: top center;
background-image: url(grafika/banertlo.png);
background-repeat:no-repeat;
margin: 0;
padding: 0;
}
.linkibaneru {
background-position: top center;
background-image: url(grafika/linkitop.png);
background-repeat:no-repeat;
background-color: transparent;
width: 1000px;
height: 71px;
clear: both;
}
.linkibaneru a, .linkibaneru a:hover {
color: #5b5b5b;
background-color: transparent;
text-decoration: none;
}
.linkibaneru img {
border: 0px;
}
#bocznypanellewy
{
width: 243px;
overflow: hidden;
background-position: top left;
background-image: url(grafika/panelglownygora.png);
background-repeat:no-repeat;
padding: 5px 0px 0px 0px;
float:left;
margin: 0px 0px 25px 4px;
}
#bocznypanelprawy
{
width: 243px;
overflow: hidden;
background-position: top left;
background-image: url(grafika/panelglownygora.png);
background-repeat:no-repeat;
padding: 5px 0px 0px 0px;
float:left;
margin: 0px 0px 25px 0px;
}
.tytulpaneli
{
font-family : Sans-Serif, Verdana, Tahoma, Arial;
font-size : 12px;
font-weight: normal;
color: #fff;
background-position: top left;
background-image: url(grafika/paneltytul.png);
background-repeat:no-repeat;
width: 193px;
height: 23px;
text-align: left;
margin:0px auto;
padding: 13px 25px;
}
.trescpaneli
{
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 12px;
background-position: top left;
background-image: url(grafika/paneltresc.png);
background-repeat:repeat-y;
width: 213px;
margin:0px;
color:#606060;
padding: 0px 15px 15px 15px;
}
.stopkapaneli
{
background-position: top left;
background-image: url(grafika/panelglownydol.png);
background-repeat:no-repeat;
width: 243px;
height: 30px;
}
#trescgora
{
width: 1000px;
height:5px;
float: left;
background-position: top center;
background-image: url(grafika/trescgora.png);
background-repeat:no-repeat;
overflow: hidden;
margin: 0px;
}
#tresc
{
width: 502px;
margin: 0px 2px 25px 2px;
float: left;
overflow: hidden;
}
#tresctresc
{
width: 1000px;
float: left;
background-position: top center;
background-image: url(grafika/tresc.png);
background-repeat:repeat-y;
overflow: hidden;
margin: 0px;
}
.tytulnews, .tytulstrona, .tytularticle
{
background-position: top left;
background-image: url(grafika/newstytultlo.png);
background-repeat:no-repeat;
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 12px;
width: 462px;
height: 16px;
padding: 20px;
float: left;
}
.trescnews, .trescstrona, .trescarticle
{
background-position: top left;
background-image: url(grafika/newstresc.png);
background-repeat:repeat-y;
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 12px;
font-weight: normal;
padding: 0px 10px 0px 10px;
width: 482px;
float:left;
}
.newspost
{
float:left;
margin:20px 10px 0px 10px;
}
.coment
{
float:right;
margin:20px 10px 0px 10px;
}
.newsstopka
{
background-position: top left;
background-image: url(grafika/newsstopka.png);
background-repeat:no-repeat;
width: 502px;
height: 20px;
padding: 5px 0px 10px 0px;
margin: 0px auto;
float:left;
font-size: 11px;
color:#000;
}
.stronastopka
{
background-position: top left;
background-image: url(grafika/stronastopka.png);
background-repeat:no-repeat;
width: 502px;
height: 8px;
clear: both;
}
.newsstopka a
{
color: #3f3f3f;
}
.stopka {
color: #aeaeae;
background-position: top left;
background-image: url(grafika/stopkatlo.png);
background-repeat:no-repeat;
width: 980px;
height: 51px;
font-size: 11px;
padding: 5px 10px;
clear: both;
}
.stopka a{
color: #aeaeae;
}
.cbalink
{
color: #d8c3a2;
width: 0px;
background-color:#d8c3a2;
margin: 0px auto;
clear: both;
}
.cbalink a, .cbalink a:hover
{
color: #d8c3a2;
}
a {
color: #606060;
text-decoration : none;
}
a:hover {
color : #fff;
text-decoration : none;
}
.side a {
color: #606060;
text-decoration : none;
}
.side a:hover {
color: #fff;
text-decoration : underline;
}
.white a {
color: #606060;
text-decoration : none;
}
.white a:hover {
color : #fff;
text-decoration : underline;
}
form {
margin : 0px;
}
hr {
height : 1px;
border: 1px #606060;
border-style: none none solid none;
}
hr.side-hr {
height : 1px;
border: 1px #606060;
border-style: none none solid none;
}
td {
font-family : "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
}
pre {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
}
.alt {
color : #919191;
}
.white-header {
font-family : "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
color : #919191;
background-color : #000;
padding : 4px;
}
.white-header ul{
margin: 0;
padding: 0;
}
.white-header ul li{
display: inline;
}
.white-header ul li.first-link .bullet{
display: none;
}
.admin-message {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
background-color : #c4c4c4;
text-align : center;
border : 1px solid #919191;
padding : 3px 4px 5px 4px;
margin-bottom : 5px;
}
.button {
font-family : "trebuchet ms", Tahoma, Arial, Verdana, Sans-Serif;
font-size : 10px;
font-weight: normal;
color: #fff;
background-color : transparent;
background-position: top center;
background-image: url(grafika/specbuton.png);
background-repeat:no-repeat;
margin:2px;
height:22px;
width: 70px;
border: none;
}
.bbcode {
background-color : #282828;
margin: 0.2em;
text-decoration: none;
border : 1px solid #131313;
font-family : "trebuchet ms", Tahoma, Arial, Verdana, Sans-Serif;
font-size : 11px;
}
.textbox {
font-family : "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
background-color : #282828;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
border : 1px solid #131313;
color: #fff;
}
.specbuton {
font-family : "trebuchet ms", Tahoma, Arial, Verdana, Sans-Serif;
font-size : 11px;
font-weight: bold;
float: right;
color: #fff;
background-color : transparent;
background-position: top center;
background-image: url(grafika/specbuton.png);
background-repeat:no-repeat;
height:22px;
width: 70px;
border: none;
}
.stextbox {
font-family : "trebuchet ms", Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
width: 190px;
padding:6px 7px;
height: 12px;
color: #8e8e8e;
background-color : transparent;
overflow:hidden;
border : none;
}
.stextboxtlo {
background-position: top center;
background-image: url(grafika/stextbox.png);
background-repeat:no-repeat;
height:30px;
width: 207px;
margin: 10px 0px 0px 0px;
}
.slink {
font-weight: normal;
font-size: 10px;
font-family : Tahoma, Arial, Sans-Serif;
text-decoration: none;
background-color : transparent;
border: none;
padding: 0px;
}
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
.barmain {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 10px;
color : #89643f;
padding : 4px;
}
.capmain {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
font-weight : bold;
color : #89643f;
background-color : #1c150e;
padding : 2px 4px 4px;
}
.scapmain {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
font-weight : bold;
color : #415d6f;
background-color : #181818;
padding : 4px 4px 1px;
}
.tbl-border {
border : 1px solid #a1a1a1;
}
.tbl {
background-color : #131313;
font-size : 11px;
padding : 4px;
}
.tbl1 {
font-size : 11px;
background-color : #333333;
padding : 4px;
}
.tbl2 {
background-color : #131313;
font-size : 11px;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
background-color : #a0a0a0;
font-size : 11px;
padding : 2px 4px 3px;
}
.quote {
background-color : #a0a0a0;
font-size : 11px;
padding : 2px;
margin : 0 20px;
}
.poll {
height : 12px;
border : 1px solid #0d0505;
}
.comment-name {
font-weight : bold;
color : #222;
}
.shoutboxname {
float: left;
width: 100%;
}
.shoutboxname a {
color:#fff;
}
.shoutboxdate {
color: #56b3d6;
font-size : 9px;
}
.shoutbox {
font-size : 11px;
padding: 5px 0px;
width: 200px;
clear: both;
}
.small {
font-size : 11px;
font-weight : normal;
}
.small2 {
font-size : 11px;
font-weight : normal;
}
.side-small {
font-size : 11px;
}
.side-label {
color : #516d7f;
padding : 2px;
}
#navigation h2 {
font-size: 12px;
margin: 0px;
padding: 4px;
}
#navigation {
color: #1c1c1c;
font-weight: bold;
}
#navigation ul {
list-style: none;
margin: 0px;
padding: 0px;
}
#navigation ul li {
background-color: #131313;
margin: 0px 0px 2px 0px;
padding: 0px 0px 0px 5px;
width: 100%;
height: 18px;
}
#navigation a {
display: block;
color: #606060;
font-weight: normal;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #fff;
}
/* Page Navigation */
.pagenav {
color : #fff;
padding: 10px;
width: 100%;
float: left;
}
.pagenav span {
color : #fff;
background-color : #0b3c4d;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
border : 1px solid #068dc0;
}
.pagenav a {
color : #fff;
background-color : #176886;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
border : 1px solid #068dc0;
}
.pagenav a:hover {
color : #fff;
background-color : #0b3c4d;
margin: 0.2em;
text-decoration: none;
}
/*Helpers*/
.center {margin: 0 auto;}
.content_center {text-align: center;}
.flleft {float: left !important;}
.flright {float: right !important;}
.clear {clear: both;}
/*IE Fixes*/
* html #main-bg {
height: 1%;
width: auto;
}
.clearfix:after {
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
/* Hide from IE Mac \*/
.clearfix {display:block;}
/* End hide from IE Mac */
.linkibaner {overflow:hidden;}
* html .linkibaner{width:100%;}
.center, *[align="center"] {margin: 0 auto;}
Edytowane przez Pieka dnia 03.03.2010 15:58:04
"Głupcy piszą, a mędrcy czytają i zapominają..."
|