Przedszkolak
Postów: 3
Data rejestracji: 26.02.2011 00:23
|
Od ostatniego czasu próbuje wyśrodkować swoja strone jednak mam problem żadna metoda nie chce mi pomóc, a zalezy mi na stałej szerokości.
Mój theme.php:
<?php
/*-------------------------------------------------------+
Theme created by ArtCell Group
Author: Yury
Site: http://www.artcell.ru
Thanks do here (áëŕăîäŕđíîńňč ďđčíčěŕţňń˙):
webmaney:
E901824784069 -ĺâđî
R392725340861 -đóáëč
Z403628532012 -äîëëŕđű
ßíäĺęńŕ äĺíüăč:
41001171216728
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<strong>·</strong>");
function render_page($license=false) {
global $settings, $main_style;
//Header
echo "<div class='outer-border $main_style' style='background-color:#fff;width:".THEME_WIDTH.";'>\n";
echo "<div class='floatfix'>\n";
echo "<div class='full-header-t floatfix'>\n\n</div>\n";
echo "<div class='full-header floatfix'>\n\n".showbanners()."</div>\n";
//Search panel
echo "<div class='search'><form id='searchform' name='searchform' method='get' action='".BASEDIR."search.php'>
<input type='text' name='stext' value='' class='textbox' style='width:210px; height:17px;' />
<input type='submit' name='search' style='height:21px;' value='Ďîčńę' class='button' /></form>
</div>\n";
echo "<div class='sub-header floatfix'>\n";
echo "<div style='float:left;'>".showsublinks(" <span class='bullet'>·</span> ","white")."</div>\n";
echo "<div style='float:right;'>".showsubdate()."</div>\n";
echo "</div></div>\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 "<div class='footer clear' style='text-align:center;'>".stripslashes($settings['footer'])."
<a href='http://www.artcell.ru' class='artcell' title='ArtCell-ďđîôĺńńčîíŕëüíŕ˙ âĺá-đŕçđŕáîňęŕ'><strong>Theme by ArtCell</strong></a><br />\n";
if ($license == false) { echo "Powered by <a class='artcell' href='http://www.php-fusion.co.uk'>PHP-Fusion</a> copyright © 2002 - 2009 by Nick Jones.<br />\n"; } echo showcounter()."<br />
<a href='http://www.artcell.ru' class='artcell' title='ArtCell'><strong> </strong></a>\n";
echo "</div>\n</div>\n";
}
function render_news($subject, $news, $info) {
echo "<div class='border' style='margin-top: 15px;'>\n";
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".$news."</div>\n";
echo "<div class='news-footer'>\n";
echo newsposter($info,"·").newsopts($info,"·").itemoptions("N",$info['news_id']);
echo "</div>\n</div>\n";
}
function render_article($subject, $article, $info) {
echo "<div class='border' style='margin-top: 15px;'>\n";
echo "<div class='capmain'>$subject</div>\n";
echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
echo "<div class='news-footer'>\n";
echo articleposter($info,"·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</div>\n</div>\n";
}
function opentable($title) {
echo "<div class='capmain' style='margin-top: 15px;'>$title</div>\n";
echo "<div class='main-body floatfix'>\n";
}
function closetable() {
echo "</div>\n";
}
function openside($title, $collapse = false, $state = "on") {
global $panel_collapse; $panel_collapse = $collapse;
echo "<div class='border'>\n";
echo "<div class='scapmain'>";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<div style='float:right;'>".panelbutton($state,$boxname)."</div>";
}
echo $title."</div>\n<div class='side-body floatfix'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside($collapse = false) {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</div>\n</div>\n";
}
?>
Mój style.css:
a {
font-size : 12px;
color : #000;
text-decoration : none;
}
a:hover {
color : #81bbfc;
text-decoration : underline;
}
.center_page {
width: 1280px;
}
a.side {
color : #000;
text-decoration : none;
}
a:hover.side {
color : #ffa42d;
text-decoration : underline;
}
a.artcell {
color : #fff;
text-decoration : none;
}
a:hover.artcell {
color : #fff;
text-decoration : underline;
}
a.white, li.white a {
font-size : 17px;
color: #fff;
text-decoration: none;
}
a:hover.white, li.white a:hover {
color: #fff;
text-decoration: underline;
}
body {
width : 1280px;
color : #555;
background : #fff;
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
margin-top : 0px;
margin-bottom : 0px;
margin-right : 5px;
margin-left : 5px;
}
form {
margin : 0px;
}
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 : 12px;
}
pre {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 12px;
}
.alt {
color : #555;
}
.outer-border {
border : 0px solid #fff;
}
.sub-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 13px;
font-weight : bold;
color : #fff;
background-color : #ff8d09;
background: #ffa22f url(images/menu_b.gif) repeat-x top right;
border-top : 0px solid #feac49;
border-bottom : 0px solid #feac49;
padding : 10px;
}
.sub-header ul{
margin: 0;
padding: 0;
}
.sub-header ul li{
display: inline;
}
.sub-header ul li.first-link .bullet{
display: none;
}
.full-header-t {
background-color : #feac49;
height: 10px;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
color : #fff;
background-color : #feac49;
background: #ffa22f url(images/body_bg.jpg) repeat-x top right;
padding : 10px;
height: 120px;
}
.search {
position: absolute;
top: 27px;
right: 5px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #fff;
background-color : #feac49;
background: #ffa22f url(images/footer.gif) repeat-x top right;
border : 1px solid #ccc;
padding : 10px;
}
.admin-message {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
text-align : center;
color : #555;
background-color : #f6f6f6;
border : 1px solid #e1e1e1;
padding : 3px 4px 5px 4px;
margin-bottom : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
color : #000;
background-color : #feac49;
background: #ffa22f url(images/but.gif) repeat-x top right;
height : 23px;
border : 1px solid #ccc;
margin-top : 2px;
}
.bbcode {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
color : #555;
background-color : #f1f1f1;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
color : #555;
background-color : #f8f8f8;
border : 1px solid #ccc;
}
.main-body {
font-size : 12px;
color : #000;
background-color : #fff;
padding : 5px 5px 5px 5px;
}
.side-body {
font-size : 12px;
color : #000;
background-color : #fff;
padding : 5px;
}
#main-bg {
color : #555;
background-color : #fff;
padding : 10px 5px 5px 5px;
}
.center {
margin : 0 auto;
}
* html #main-bg{
height: 0px;
}
.border {
border : 0px solid #ffa22f;
margin-bottom : 0px;
}
.side-left .side-border-right {display: none;}
.side-right .side-border-left {display: none;}
.side-border-left {
color : #777;
background-color : #fff;
padding : 10px 10px 10px 10px;
width: 190px;
}
.side-border-right {
color : #777;
background-color : #fff;
padding : 10px 10px 10px 10px;
width: 190px;
}
.news-category {
border:0;
margin:3px 5px 0 0;
float:left;
}
.news-footer {
text-align: center;
font-size : 10px;
color : #555;
background-color : #f1f2f4;
padding : 3px 4px 4px 4px;
}
.barmain {
font-family : Verdana, Tahoma, Arial, Sans-Serif;
font-size : 11px;
color : #aaa;
padding : 4px;
}
.capmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 17px;
font-weight : bold;
color : #fff;
background-color : #feac49;
background: #ffa22f url(images/menu_b.gif) repeat-x;
padding : 6px 10px 5px 30px;
margin-top: 4px;
}
.scapmain {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 17px;
font-weight : bold;
color : #fff;
background-color : #feac49;
background: #ffa22f url(images/panel.gif) repeat-x top right;
border-bottom : 1px solid #e1e1e1;
padding : 8px 10px 8px 15px;
}
.tbl-border {
border : 1px solid #e1e1e1;
}
.tbl {
font-size : 12px;
color : #555;
background-color : #fff;
padding : 4px;
}
.tbl1 {
font-size : 12px;
color : #555;
background-color : #fff;
padding : 4px;
}
.tbl2 {
font-size : 12px;
color : #fff;
background-color : #feac49;
background: #ffa22f url(images/menu_b.gif) repeat-x top right;
padding : 4px;
}
.forum-caption {
font-size : 12px;
font-weight : bold;
color : #fff;
background-color : #feac49;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 12px;
color : #555;
background-color : #f8f8f8;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #bbb;
}
.comment-name {
font-weight : bold;
color : #005599;
}
.shoutboxname {
font-weight : bold;
color : #005599;
background-color : #fefefe;
}
.shoutbox {
color : #000;
background-color : #fff;
}
.shoutboxdate {
font-size : 10px;
color : #888;
background-color : #fefefe;
}
.small {
font-size : 10px;
font-weight : normal;
}
.small2 {
font-size : 10px;
font-weight : normal;
color : #555;
}
.side-small {
font-size : 10px;
font-weight : normal;
color : #555;
background-color : #fefefe;
}
.side-label {
color : #fff;
background-color : #feac49;
padding : 2px 2px 3px 2px;
}
/* Vertical Navigation */
#navigation h2 {
font-size: 10px;
color : #555;
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: #005599;
background-color: #fefefe;
padding: 2px;
text-decoration : none;
}
#navigation a:hover {
color: #fefefe;
background-color: #005599;
}
/* Page Navigation */
.pagenav {
padding: 0.4em;
}
.pagenav span {
color: #fff;
background-color: #005599;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
}
.pagenav a {
color: #005599;
background-color: #fff;
border: 1px solid #e1e1e1;
padding: 0.2em 0.4em 0.2em 0.4em;
margin: 0.2em;
text-decoration: none;
}
.pagenav a:hover {
color: #fff;
background-color: #005599;
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 */
.floatfix {overflow:hidden;}
* html .floatfix {width:100%;}
.center, *[align="center"] {margin: 0 auto;}
Edytowane przez Pieka dnia 26.02.2011 17:01:28
|