Proszę o pomoc w pomniejszeniu ogólnej szerokości theme: SmoothBlue07.
Wiadomość doklejona:
Dodam jeszcze zawartość plików styles.css, oraz theme.php.
styles.css
* {font-size:11px; font-family:Verdana,Tahoma,Arial,Sans-Serif; margin:0px; padding: 0px;}
a { color:#666; text-decoration:none; }
a:hover { color:#666; text-decoration:underline; }
a.side { color:#666; text-decoration:none; }
a:hover.side { color:#666; text-decoration:underline; }
li.white a, a.white{ color:#5a6d9c; text-decoration:none; }
li.white a:hover, a:hover.white { color:#5a6d9c; text-decoration:underline; }
body {
margin: 0px 20px 0px 20px;
color: #000000;
background-color: #Ebf0ff;
}
form { margin:0px 0px 0px 0px; }
hr { height:1px; color:#ddd; }
hr.side-hr { height:1px; color:#ccc; }
td { font-family:Verdana,Tahoma,Arial,Sans-Serif; }
pre { font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; }
.alt { color:#666; }
#logo{
padding: 10px;
text-align:center;
}
.whiteheader {
font-size:12px;
font-weight: bold;
line-height:48px;
vertical-align:middle;
padding: 0px 20px;
color:#000;
}
.whiteheaderbg{
/* margin-top: -8px !important; */
margin-top: 0px;
width: 100%;
height: 53px;
background-image: url(images/whiteheaderbg.png);
background-repeat: repeat-x;
}
.whiteheaderl{
width: 100%;
height:53px;
background-image: url(images/whiteheaderl.png);
background-repeat: no-repeat;
}
.whiteheaderr{
width: 100%;
height:53px;
background-image: url(images/whiteheaderr.png);
background-repeat: no-repeat;
background-position: right;
}
.button {
font-family:Tahoma,Arial,Verdana,Sans-Serif;
font-size:10px;
color:#000;background-color:#fff;
background-image: url(images/shade.png);
background-repeat: repeat-x;
padding:3px;
border:1px #888 solid;
margin-top:2px;
}
.textbox {
font-size:11px;
color:#000;background-color:#fff;
border:1px #999 solid;
background-image: url(images/shade.png);
background-repeat: repeat-x;
margin: 1px;
}
.main-bg {
padding-top: 0px;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
}
.border { border:0px #fff solid; }
.side-border-left { padding:0px; width: 190px;}
.side-border-right { padding:0px; width: 190px;}
.barmain {
font-size:10px;
color:#000;
padding:4px 4px 4px 4px;
}
.panelbg{
background-color: #fbfbfb;
}
.scapbg{
width: 100%;
height: 60px;
background-image: url(images/scapbg.png);
background-repeat: repeat-x;
margin: 0px;
}
.scapl{
width: 100%;
height: 60px;
background-image: url(images/scapl.png);
background-repeat: no-repeat;
}
.scapr{
width: 100%;
height: 60px;
background-image: url(images/scapr.png);
background-repeat: no-repeat;
background-position: right;
}
.sbodyl{
background-image: url(images/sbodyl.png);
background-repeat: repeat-y;
}
.sbodyr{
background-image: url(images/sbodyr.png);
background-repeat: repeat-y;
background-position: right top;
}
.sfootbg{
/* margin-top: -1px !important; */
margin-top: 0px;
width: 100%;
height: 26px;
background-image: url(images/sfootbg.png);
background-repeat: repeat-x;
}
.sfootl{
width: 100%;
height:26px;
background-image: url(images/sfootl.png);
background-repeat: no-repeat;
}
.sfootr{
width: 100%;
height:26px;
background-image: url(images/sfootr.png);
background-repeat: no-repeat;
background-position: right;
}
.scapmain {
font-size:12px;
font-weight: bold;
text-align: center;
color:#5a6d9c;
padding:15px 5px 30px 0px;
}
.side-body {
width: auto !important;
width:100%;
font-size:10px;
color:#000;
padding: 0px 14px 0px 8px;
/* margin-top: -5px !important; */
margin-top: 0px;
}
.capbg{
width: 100%;
height: 18px;
background-image: url(images/o.png);
background-repeat: repeat-x;
margin: 0px;
}
.capl{
width: 100%;
height: 18px;
background-image: url(images/ol.png);
background-repeat: no-repeat;
}
.capr{
width: 100%;
height: 18px;
background-image: url(images/or.png);
background-repeat: no-repeat;
background-position: right top;
}
.capm{
width: 100%;
height: 18px;
background-image: url(images/om.png);
background-repeat: no-repeat;
background-position: center top;
/* padding-right: -11px; */
}
.bodyl{
width: 100%;
background-image: url(images/l.png);
background-repeat: repeat-y;
}
.bodyr{
width: 100%;
background-image: url(images/r.png);
background-repeat: repeat-y;
background-position: right top;
}
.footbg{
width: 100%;
height: 26px;
background-image: url(images/sfootbg.png);
background-repeat: repeat-x;
}
.footl{
width: 100%;
height:26px;
background-image: url(images/sfootl.png);
background-repeat: no-repeat;
}
.footr{
width: 100%;
height:26px;
background-image: url(images/sfootr.png);
background-repeat: no-repeat;
background-position: right;
}
.capmain {
font-size:12px;
font-weight: bold;
color:#5a6d9c;
padding:5px 20px 0px 20px;
/* margin-bottom: -1px; */
}
.main-body {
width: auto !important;
width:100%;
color:#000;
padding: 10px 14px 0px 8px;
}
.news-footer {
text-align:right;
margin-bottom: -3px !important;
margin-bottom: 0px;
font-size:9px;
color:#000;
padding:2px 4px 4px 4px;
}
.tbl-border {
background-color:#f0f0f0;
}
.tbl {
padding:4px;
}
.tbl1 {
margin: 1px;
color:#000; background-color:#fff;
padding:4px;
}
.tbl2 {
color:#000; background-color:#f5f5f5;
padding:4px;
}
.forum-caption {
font-size:11px;font-weight:bold;
color:#5a6d9c;background-color:#f0f0f0;
text-align: center;
padding:4px;
}
.quote {
color:#000;background-color:#eee;
padding:2px;
margin:0px 20px 0px 20px;
border:1px #ccc solid;
}
.poll { height:12px; border:1px #000 solid; }
.comment-name { font-weight:bold; color:#666; }
.shoutboxname { font-weight:bold; color:#666; }
.shoutbox { color:#666; }
.shoutboxdate { font-size:9px; color:#000; }
.small { font-size:10px; font-weight:normal; }
.small2 { font-size:10px; font-weight:normal; color:#666; }
.side-small { font-size:10px; font-weight:normal; color:#000; }
.side-label { background-color:#eee; padding:2px; }
img {border:0px;}
#footerr {float:right;}
#footerl{float:left;}
.whiteheader ul{
margin: 0;
padding: 0;
}
.whiteheader ul li{ display: inline; }
.whiteheader ul li.first-link .bullet{ display: none; }
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
#navigation h2 {
font-size: 12px;
color: #000000;
margin: 0;
padding: 2px;
}
#navigation a {
display: block;
color: #666666;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #f6f6f6;
background-color: #5a6d9c;
}
* html #navigation ul li{
height: 1%;
}
.pagenav span {
color: #777;
background-color: #f0f0f0;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 2px;
}
.pagenav a {
color: #000;
background-color: #fff;
border: 1px solid #e1e1e1;
padding: 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #ccc;
background-color: #444;
text-decoration: none;
}
.center, *[align="center"] {margin: 0 auto;}
.admin-message {
border: 1px solid #666;
border-left: 3px solid #999;
padding: 8px;
margin-bottom: 8px;
}
.tablebreak { margin-bottom: 8px; }
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
theme.php:
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
///Theme by Matonor
// Converted to v7 by Kenneth
// theme settings
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");
require_once INCLUDES."theme_functions_include.php";
$theme_width = "100%";
function render_page($license=false) {
global $theme_width,$settings,$locale;
echo "
<div>
<div id='logo'>".showbanners()."</div>
<div class='whiteheaderbg'>
<div class='whiteheaderl'>
<div class='whiteheaderr'>
<div class='whiteheader' style='float:left;'>
".showsublinks(" <span class='bullet'>·</span> ", "white")."
</div>
<div class='whiteheader' style='float:right;'>
".showsubdate()."
</div>
</div>
</div>
</div>
<table width='100%' cellspacing='0' cellpadding='0' style='margin-top: 15px; clear:both;'>
<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "
</tr>
</table>
<div style='text-align:center;'>
".stripslashes($settings['footer'])."
".showcounter()."
</div>";
if ($license == false) {
echo "
<div id='footerl'>
".showcopyright()."
</div>
<div id='footerr' align='right'>
Design by <a target='_blank' href='http://www.matonor.de'>Matonor</a><br />Converted to PHP-Fusion v7 by <a href='http://www.php-fusion.nu/' target= '_blank'>Kenneth</a><br />\n";
}
echo "
</div>
</div>";
}
function render_news($subject, $news, $info) {
global $locale;
opentable($subject);
echo $news."
<br style='clear:both;' />
<div class='news-footer'>".
newsposter($info," ·").
newsopts($info,"·").
itemoptions("N",$info['news_id']).
"</div>";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)."
<br style='clear:both;' />
<div class='news-footer'>".
articleposter($info," ·").
articleopts($info,"·").
itemoptions("A",$info['article_id'])."
</div>";
closetable();
}
function opentable($title) {
echo "
<div class='panelbg tablebreak'>
<div class='capbg'>
<div class='capl'>
<div class='capr'>
<div class='capm'>
<div class='capmain'>
".$title."
</div>
</div>
</div>
</div>
</div>
<div class='bodyl'>
<div class='bodyr'>
<div class='main-body'>";
}
function closetable() {
echo "
</div>
<div class='footbg'>
<div class='footl'>
<div class='footr'>
</div>
</div>
</div>
</div>
</div>
</div>";
}
$flipboxid = 0;
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
$boxname = str_replace(" ", "", $title);
echo "<div class='panelbg tablebreak'>
<div class='scapbg'>
<div class='scapl'>
<div class='scapr'>
<div class='scapmain'>$title<br />".($collapse ? "<div align='right' style='float:right; margin-top: -20px; margin-right:10px;'>".panelbutton($state, $boxname)."</div>" : "")."</div>
</div>
</div>
</div>
<div class='sbodyl'>
<div class='sbodyr'>
<div class='side-body'>";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "
</div>
</div>
</div>
<div class='sfootbg'>
<div class='sfootl'>
<div class='sfootr'>
</div>
</div>
</div>
</div>";
}
// function tablebreak() {
//
// echo "<div style='height:8px;'></div>\n";
//
// }
?>
Długie kody dawaj w znaczniki code. //hoopak
Wiadomość doklejona:
Jeszcze raz proszę o pomoc w pomniejszeniu...
Edytowane przez Pieka dnia 04.11.2009 18:00:41
|