Przedszkolak
Postów: 48 Pomógł: 4 Ostrzeżeń: 1
Data rejestracji: 15.05.2010 19:35
ZBANOWANY: Dożywotnio
|
Mam taki problem, a mianowicie po dodaniu większej il. linków w jednym z paneli to tło w panelu na początku jest granatowe, a z dodawaniem linków = rozszerzaniem się panelu tło zaczyna się robić szare. Szukałem na forum, lecz nic nie znalazłem, próbowałem sam modyfikować styles.css ale nic nie wychodziło. Proszę o pomoc co mam edytować w tym pliku lub w theme.php. ;)
Screen jak to wygląda:
Oraz dodaje kody plików:
styles.css
/* Comment element properties */
a {
color: #FFF;
text-decoration: none;
}
a:hover {
color: #FFF;
text-decoration: underline;
}
a.side {
color: #fff;
text-decoration: none;
}
a:hover.side {
color: #FFF;
text-decoration: underline;
}
a.white, li.white a {
color: #fff;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #fff;
text-decoration: underline;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #fff;
margin: 5px;
background-image: url('images/uefa.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-position: extend;
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 1;
}
hr {
height: 1px;
border: 1px solid #eee;
}
hr.side-hr {
height: 1px;
border: 1px solid #eee;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
pre {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.alt {
color: #FFF;
}
.spacer {
margin-bottom: 5px;
}
.admin-message {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
text-align: center;
color: #888;
background-color: #transparent;
border: 1px solid #e1e1e1;
padding: 3px 4px 5px 4px;
margin-bottom: 5px;
}
/* Form element properties */
form {
margin: 0px;
}
.button {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #fff;
background-color: #000;
background-image: url('images/button.gif');
height: 20px;
border: 1px solid #000;
margin-top: 2px
}
.bbcode {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000;
background-color: #eee;
border: 1px solid #ccc;
margin-top: 2px;
}
.textbox {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #fff;
background-color: #333;
border: 1px solid #888;
}
/* Header and footer properties */
.sub-header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 10px;
color: #fff;
background-color: #888;
background-image: url('images/subheader-mid.gif');
padding-left:5px; padding-right:5px; padding-top:10px; padding-bottom:8px
}
.sub-header ul{
margin: 0;
padding: 0;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li.first-link .bullet{
display: none;
}
.full-header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #000;
background-color: #000;
background-image: url('images/logo.gif');
background-repeat: repeat-x;
padding-left:0; padding-right:0; padding-top:0px; padding-bottom:0px
}
.main-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #fff;
background-color: #111;
padding: 5px;
}
.bottom-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #fff;
background-color: #888;
padding: 4px 4px 5px 4px;
}
.main-body {
font-size: 10px;
color: #fff;
background-color: #111;
border: 1px solid #000;
padding: 4px;
}
/* Side-Panel properties */
.side-border-left {
color: #fff;
background-color: #111;
padding: 10px 10px 10px 0;
width: 175px;
}
.side-border-right {
color: #fff;
background-color: #111;
padding: 10px 0 10px 10px;
width: 175px;
}
.scapmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #FFF;
background-color: #111;
background-image: url('images/side.gif');
background-repeat: repeat-x;
padding-left:4px; padding-right:4px; padding-top:6px; padding-bottom:6px
}
.side-body {
font-size: 10px;
color: #fff;
background-color: #111;
background-image: url('images/gradient.gif');
background-repeat: repeat-x;
border: 1px solid #000;
padding: 4px
}
/* Center-Panel properties */
.news-category {
border: 0px none;
float: left; margin-left:0; margin-right:5px; margin-top:3px; margin-bottom:0
}
.news-footer {
border-left:1px solid #222; border-right:1px solid #222; border-top:0px solid #222; border-bottom:1px solid #222; font-size: 10px;
color: #fff;
background-color: #transparent;
padding-left:4px; padding-right:4px; padding-top:3px; padding-bottom:4px
}
.capmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #fff;
background-color: #111;
background-image: url('images/cap.gif');
padding-left:4px; padding-right:4px; padding-top:6px; padding-bottom:6px
}
.main-bg {
color: #fff;
background-color: #111;
padding: 10px 0 5px 0;
}
/* General table properties */
.center {
margin: 0 auto;
}
.tbl-border {
border: 2px solid #202020;
}
.tbl {
font-size: 11px;
color: #fff;
background-color: #111;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #fff;
background-color: #222;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #fff;
background-color: #111;
padding: 4px;
}
.forum-caption {
font-size: 11px;
font-weight: bold;
color: #fff;
background-color: #222;
padding: 2px 4px 4px 4px;
}
.quote {
font-size: 11px;
color: #fff;
background-color: #22;
padding: 4px;
margin: 0px 20px 0px 20px;
border: 1px solid #bbb;
}
.poll {
height: 12px;
border: 1px solid #bbb;
}
.comment-name {
font-weight: bold;
color: #04688d;
}
.shoutboxname {
font-weight: bold;
color: #04688d;
}
.shoutbox {
color: #fff;
}
.shoutboxdate {
font-size: 10px;
color: #888;
}
.small {
font-size: 10px;
font-weight: normal;
}
.small2 {
font-size: 10px;
font-weight: normal;
color: #fff;
}
.side-small {
font-size: 10px;
font-weight: normal;
color: #fff;
}
.side-label {
color: #fff;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 10px;
font-weight: normal;
background-color: #f1f1f1;
margin: 0;
padding: 4px;
}
#navigation ul {
margin: 0;
padding: 0;
list-style-type: none;
}
* html #navigation ul li{
height: 1%;
}
#navigation a {
display: block;
color: #555;
padding: 2px;
text-decoration: none;
}
#navigation a:hover {
color: #fff;
background-color: #f6a504;
}
/* Page Navigation */
.pagenav {
padding: 4px;
}
.pagenav span {
color: #fff;
background-color: #f6a504;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #555;
background-color: #f1f1f1;
border: 1px solid #ddd;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #f6a504;
margin: 2px;
text-decoration: none;
}
Kliknij i zaczekaj na załadowanie kodu ...
theme.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
//Header
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left' class='full-header'><img src='".THEME."images/logo2.png' width='300' height='150'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/subheader-left.gif'></td>\n";
echo "<td class='sub-header' align='left' width='50%' height='35'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
echo "<td align='right' class='sub-header' width='50%'>".showsubdate()."</td>\n";
echo "<td align='right'><img src='".THEME."/images/subheader-right.gif'></td>\n";
echo "</tr>\n</table>\n";
//Content
echo "<table cellpadding='0' cellspacing='0' width='100%' class='$main_style'>\n<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>\n</table>\n";
//Footer
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/subheader-left.gif'></td>\n";
echo "<td align='left' class='sub-header' width='70%'>Powered by <a href='http://php-fusion.co.uk'>PHP-Fusion</a> copyright © 2002 - 2008 by Nick Jones.Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html' target='_blank'>GNU Affero GPL</a> v3.</td>";
echo "<td align='right' class='sub-header'width='30%'>Fusion7Evo by <a href='http://art4fusion.com' target='_blank'>Art4Fusion.com</a> modifyed by <a href='http://the-best.de.am' target='_blank'>The-Best.de.am</a></td>";
echo "<td align='right'><img src='".THEME."/images/subheader-right.gif'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/subheader-left.gif'></td>\n";
echo "<td align='left' class='sub-header' width='50%'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>";
echo "<td align='right' class='sub-header'width='50%'>".showcounter()."</td>";
echo "<td align='right'><img src='".THEME."/images/subheader-right.gif'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "</td>\n";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td align='left'><img src='".THEME."/images/cap-left.gif'></td>\n";
echo "<td class='capmain' width='100%'>".$subject."</td>\n";
echo "<td align='right'><img src='".THEME."/images/cap-right.gif'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer middle-border'>\n";
echo newsposter($info," ·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$title."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td style='height:0px;background-color:#000;'></td>\n";
echo "</tr>\n</table>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
echo "<td><img src='".THEME."/images/side-left.gif' align='left'></td>\n";
echo "<td class='scapmain' align='center' width='100%'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td><img src='".THEME."/images/side-right.gif' align='right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>
Kliknij i zaczekaj na załadowanie kodu ...
Edytowane przez Pieka dnia 19.05.2010 18:09:45
"W życiu piękne są tylko chwile."
Pomogłem? Wciśnij ;P
|