Przedszkolak
Postów: 4 Ostrzeżeń: 1
Data rejestracji: 15.07.2012 10:39
ZBANOWANY: Dożywotnio
|
Witam. Mam nadzieję, że ktoś mi pomoże. Na stronie mam menu i zaraz pod nim system newsów, jak mogę odzielić menu od systemu newsów aby między nimi była większa odległość? Bo chcę między nimi umieścić jeszcze coś na stronie, ale nie mogę zwiększyć odległości między nimi.
To mój theme.php i .css może ktoś coś wykombinuje.
theme.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'><img src='".THEME."/images/bullet.gif'></span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $settings, $main_style, $locale;
echo"
<table align='center' cellspacing='0' cellpadding='0' id='main'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>".showbanners()."</td>
</tr>
</table>
</td>
</tr>
</table>";
//Content
echo "<table cellpadding='0' cellspacing='10' 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' class='main-footer'>Desing created by <a href='mailto:'>Look</a> | Coded by <a href='mailto:'>eWe</a><br />Theme by <a href='http://gfxpixel.info'>GFXpixel.info</a><br />Design Downloaded from <a href='http://www.template4all.com/php-fusion/' title='free phpfusion themes' target='_blank'>free phpfusion themes</a> | <a href='http://www.freethemes4all.com/' title='free website templates' target='_blank'>free website templates</a> | <a href='http://www.seodesign.us/' title='free psd files download' target='_blank'>free psd files</a><br />".showcounter()."";
if (!$license) { echo "\n".showcopyright(); }
echo "</br> ".stripslashes($settings['footer']);
echo "</td>\n";
echo "</tr>\n</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\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'>\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>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></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'>\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";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></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%'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr>\n</table>\n";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></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 class='scapmain-left'></td>\n";
echo "<td align='center' class='scapmain'>$title</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\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";
echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
<td align='center' class='sideb' width='100%'></td>
<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
</tr></table>\n";
}
?>
.css
/* Comment element properties */
a {
color: #FFF;
text-decoration: none;
}
a:hover {
color: #FFF;
text-decoration: underline;
}
a.side {
color: #CBCBCB;
text-decoration: none;
}
a:hover.side {
color: #FFF;
text-decoration: underline;
}
a.white, li.white a {
color: #FFF;
text-decoration: none;
padding: 6px 15px 6px 15px;
border-width: 0 1px 0px 0px;
border-color: #292a2c;
border-style: solid;
}
a:hover.white, li.white a:hover {
color: #1c1c1c;
text-decoration: none;
padding: 6px 15px 6px 15px;
border-width: 0 1px 0px 0px;
border-color: #292a2c;
border-style: solid;
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #CBCBCB;
background: #000;
margin: 0px;
}
hr {
height: 1px;
border: 1px solid #272727;
}
hr.side-hr {
height: 1px;
border: 1px solid #272727;
}
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
pre {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.alt {
color: #CBCBCB;
}
.spacer {
margin-bottom: 10px;
}
.admin-message {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
text-align: center;
color: #CBCBCB;
background-color: #323232;
border: 1px solid #000;
padding: 3px 4px 5px 4px;
margin-bottom: 5px;
}
a.menuu span {
display:none;
padding:2px 3px;
margin-left:5px;
width:180px;
}
a.menuu:hover span{
display: block;
z-index: 3;
position: absolute;
margin: -2px 0 0 -15px;
border:0px solid #ffffff;
color:#000000;
}
#fff; padding:3px; border:1px solid #3a93d2; white-space:nowrap; width:90px; z-index:400; height:auto;}
/* Form element properties */
form {
margin: 0px;
}
.button {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #fff;
background-color: #404040;
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 #000;
margin-top: 2px;
}
.textbox {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #CBCBCB;
background-color: #323232;
border: 1px solid #000;
}
/* Header and footer properties */
.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: #399afc;
padding: 0px 0px 0px 0px;
}
.glowna {
padding: 0px 100px 0px 0px;}
.main-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #888;
padding: 5px;
}
.bottom-footer {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
color: #CBCBCB;
background-color: #323232;
padding: 4px 4px 5px 4px;
}
.main-body {
font-size: 10px;
color: #CBCBCB;
background-color: #1c1c1c;
border-width: 0 1px 0 1px;
border-color: #272727;
border-style: solid;
padding: 10px 10px 0 10px;
}
/* Side-Panel properties */
.side-border-left {
color: #777;
padding: 0px 0 5px 5px;
width: 175px;
}
.side-border-right {
color: #777;
padding: 0px 5px 5px 0;
width: 175px;
}
.scapmain {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
color: #FFF;
background-color: #323232;
background-image: url(images/side.png);
background-repeat: repeat-x;
}
.scapmain-left {
width: 10px;
height: 27px;
background-color: #323232;
background-image: url(images/side-left.png);
}
.scapmain-right {
width: 10px;
height: 27px;
background-color: #323232;
background-image: url(images/side-right.png);
}
.side-body {
font-size: 10px;
color: #fff;
background-color: #1c1c1c;
border-width: 0 0 0 1px;
border-color: #272727;
border-style: solid;
padding: 10px 10px 0 10px;
}
.sideb { background-image: url(images/sideb.png); background-repeat: repeat-x; }
/* Center-Panel properties */
.news-category {
border: 0;
margin: 3px 5px 0 0;
float: left;
}
.news-footer {
font-size: 10px;
color: #CBCBCB;
background-color: #1c1c1c;
border-width: 0 1px 0 1px;
border-color: #272727;
border-style: solid;
padding: 3px 4px 0 4px;
}
.capmain {
font-family: sans-serif, Helvetica, Verdana, Arial;
font-size: 11px;
font-weight: bold;
color: #399afc;
background-color: #1c1c1c;
background-image: url(images/cc.png);
border-width: 0px 0px 0 0px;
border-color: #272727;
border-style: solid;
padding: 0px 4px 4px 4px;
}
.capmain-left {
width: 10px;
height: 27px;
background-color: #323232;
background-image: url(images/cleft.png);
}
.capmain-right {
width: 10px;
height: 27px;
background-color: #323232;
background-image: url(images/cright.png);
}
.main-bg {
color: #CBCBCB;
padding: 0px 5px 0 5px;
}
/* General table properties */
.center {
margin: 0 auto;
}
.tbl-border {
background-color: #000;
}
.tbl {
font-size: 11px;
color: #CBCBCB;
padding: 4px;
}
.tbl1 {
font-size: 11px;
color: #fff;
background-color: #2c2c2c;
padding: 4px;
}
.tbl2 {
font-size: 11px;
color: #fff;
background-color: #1c1c1c;
padding: 4px;
}
.forum-caption {
font-size: 11px;
font-weight: bold;
color: #fff;
background-color: #2c2c2c;
padding: 2px 4px 4px 4px;
}
.quote {
font-size: 11px;
color: #CBCBCB;
background-color: #323232;
padding: 4px;
margin: 0px 20px 0px 20px;
border: 1px solid #000;
}
.poll {
height: 12px;
border: 1px solid #000;
}
.comment-name {
font-weight: bold;
color: #CBCBCB;
}
.shoutboxname {
font-weight: bold;
color: #888;
}
.shoutbox {
color: #CBCBCB;
}
.shoutboxdate {
font-size: 8px;
color: #888;
}
.small {
font-size: 10px;
font-weight: normal;
}
.small2 {
font-size: 10px;
font-weight: normal;
color: #CBCBCB;
}
.side-small {
font-size: 10px;
font-weight: normal;
color: #CBCBCB;
}
.side-label {
color: #CBCBCB;
margin: 2px 0 2px 0;
padding: 2px 2px 3px 2px;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 10px;
font-weight: normal;
background-color: #323232;
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: #CBCBCB;
padding: 2px;
text-decoration: none;
}
#navigation a:hover {
color: #CBCBCB;
background-color: #323232;
}
/* Page Navigation */
.pagenav {
padding: 4px;
}
.pagenav span {
color: #CBCBCB;
background-color: #323232;
border: 1px solid #000;
padding: 2px 4px 2px 4px;
margin: 2px;
}
.pagenav a {
color: #CBCBCB;
background-color: #323232;
border: 1px solid #000;
padding: 2px 4px 2px 4px;
margin: 2px;
text-decoration: none;
}
.pagenav a:hover {
color: #CBCBCB;
background-color: #323232;
margin: 2px;
text-decoration: none;
}
Edytowane przez Pieka dnia 15.07.2012 11:47:44
|