Początkujący
Postów: 111
Data rejestracji: 13.04.2006 11:18
|
Chcialbym sobie wycentrowac taie napisy jak nawigacja, witamy, wiem ze powinienem dopisac text-align: center;
tylko pytanie gdzie :D
/* The content of the posts (body of text) */
body {
background-image: url(images/bkg.gif);
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:10px;
padding:0px 0px 0px 0px;
margin: 5px 0px 5px 0px;
scrollbar-3dlight-color:#d1d7dc;
scrollbar-arrow-color:#006699;
scrollbar-darkshadow-color:#98aab1;
scrollbar-face-color:#dee3e7;
scrollbar-highlight-color:#ffffff;
scrollbar-shadow-color:#dee3e7;
scrollbar-track-color:#efefef;
}
/* General page style */
a {color:#141E30; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover {color:#27769F; text-decoration:none;}
a.side {color:#141E30; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
a:hover.side {color:#27769F; text-decoration:none;}
a.white {color:#141E30; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;height:16px;white-space:nowrap;}
a:hover.white {color:#27769F; text-decoration:none;}
form {margin:0px 0px 0px 0px;}
hr {height:2px; border-bottom:#fff 1px solid; border-top:#ccc 1px solid;}
hr.side-hr {height:2px; border-bottom:#fff 1px solid; border-top:#ccc 1px solid;}
td {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;}
pre {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;}
.alt {color:#1C1C1C;}
.white-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#ffffff;background-color:#0f9491;
padding:4px; border-top:#4564A4 1px solid; border-bottom:#4564A4 1px solid;}
.full-header {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#0000000;background-color:#0f9491;}
.button {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; font-weight:bold; color:#111111;background-color:#E8EBED;
border:1px #4564A4 solid;}
.textbox {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#2A365A;background-color:#E8EBED;
border:1px #4564A4 solid;}
.main-body {font-size:11px; color:#000; background-color:#EAEAE9; padding:3px 4px 3px 4px;}
.side-body {background-image:url(images/back1.gif);font-size:10px; color:#1C3B83; padding:4px 4px 6px 4px;}
.main-bg {background-color:#C0C7CF;}
.border {border-width:0px 1px 1px 1px;border-color:#4564A4;border-style:solid;}
.news-footer {font-size:9px;font-weight:normal; color:#111111;background-color:#DCDCDC; padding:4px 4px 4px 4px;}
.capmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold;
border-width:1px 1px 1px 1px;border-color:#4564A4;border-style:solid;
background-image:url(images/header.gif); color:#DABC53; height:27px; padding:0px 2px 2px 2px;}
.capmain2 {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold;
border-width:0px 0px 0px 0px;border-color:#4564A4;border-style:none;
background-image:url(images/header_news.gif); color:#DABC53; height:24px; padding:2px 2px 2px 2px;}
.stats {background: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.loadtime {background: none; COLOR: #0000FF; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny {background: none; COLOR: #000000; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title {background: none; COLOR: #111111; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.block-title {background: none; COLOR: #008c91; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none} // kolor przy napisach nawigacja itp
.news-title {background: none; COLOR: #008c91; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.table-title {background: none; COLOR: #008c91; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.date {background: none; COLOR: #191b1d; FONT-SIZE: 14px; FONT-WEIGHT: bold; FONT-FAMILY: fantasy; TEXT-DECORATION: none}
img {border: 0px;}
.capleft {width:2px;height:20px;}
.capright {width:2px;height:20px;}
.scapmain {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold; color:#000; height:19px; padding:0px 2px 0px 2px;
border-width:1px 0px 1px 0px;border-color:#4564A4 #4564A4 #4564A4 #4564A4;border-style:solid;}
.tbl {font-size:11px; background-color: #EAEAE9;}
.tbl1 {font-size:11px; background-color: #EAEAE9; border-top: solid #4564A4; border-top-width: 1px; border-left: solid #4564A4; border-left-width: 1px; border-right: solid #4564A4; border-right-width:1px; border-bottom: solid #4564A4; border-bottom-width:1px; padding:4px;}
.tbl2 {font-size:11px; background-color: #EAEAE9; border-top: solid #4564A4; border-top-width: 1px; border-left: solid #4564A4; border-left-width: 1px; border-right: solid #4564A4; border-right-width:1px; border-bottom: solid #4564A4; border-bottom-width:1px; padding:4px;}
/* Forum header*/
.forum-caption {font-size:10px;font-weight:bold; color:#0B2943;background-color:#EAEAE9; height:27px; padding:0px 4px 2px 4px;
background-image:url(images/header.gif);background-repeat:repeat-x;border-width:1px 1px 1px 1px;border-color:#4564A4 #4564A4 #4564A4 #4564A4;border-style:solid;}
/* Quote blocks */
.quote {color:#006600;background-color:#F1F1F1; padding:2px; margin:0px 20px 0px 20px; border:1px #4564A4 solid;}
/* Voting Poll */
.poll {height:12px; border:1px #4564A4 solid;}
.comment-name {font-weight:bold; color:#ddcc88;}
/* This is for the Shoutbox */
.shoutboxname {font-weight:bold; color:#ffddaa;}
.shoutbox {color:#06070A;}
.shoutboxdate {font-size:9px; color:#1C1C1C;}
.shoutboxhelp {font-size:10px; color:#295CAA;font-weight:bold;}
.small {font-size:9px; font-weight:normal;}
.small2 {font-size:9px; font-weight:normal; color:#1C1C1C;}
.side-small {font-size:10px; font-weight:normal; color:#000000;}
.side-label {background-color:none; font-weight:normal; color:#006CE6; padding:2px;}
/* This is for the Photo Gallery */
.gallery {padding: 16px 0px 8px 0px;}
.gallery img {border: 1px solid #4564A4; filter: gray;}
.gallery:hover img {border: 1px solid #4E79F3; filter: none;}
img.activegallery {border: 1px solid #4564A4; filter: none;}
.forumline {border:1px #4564A4 solid;}
.forumcat {font-size:11px; font-weight:bold; color:#295CAA;}
/* Forum Search */
.lkmenu_popup {background: #EFEFEF; color: #000000; border: 1px solid #5E7DBD;}
.lkmenu_option {background: #D5D9E0; color: #000000; font: 10px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; white-space: nowrap; cursor: pointer;}
.lkmenu_hilite {background: #A2B2CC; color: #FF0000; font: 10px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; white-space: nowrap; cursor: pointer;}
.lkmenu_hilite a:link {color: #FF0000; text-decoration: none;}
.lkmenu_hilite a:visited {color: #FF0000; text-decoration: none;}
.lkmenu_input {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; font-weight:bold; color:#2A365A;background-color:#E8EBED;
border:1px #4564A4 solid;}
.lkmenu_text {background: none; color: #0068B9; font: 10px; font-weight:bold; lucida, verdana, geneva, 'lucida grande', arial, helvetica, sans-serif; white-space: nowrap; cursor: pointer;}
Z góry dziekuje za pomoc :D:D
wg mnie powino byc to tu dopisywane ale jak opisuje to niestety nic sie nie dzieje :D:D .block-title {background: none; COLOR: #008c91; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
Edytowane przez raper_1987 dnia 11.05.2006 14:27:46
|
Początkujący
Postów: 111
Data rejestracji: 13.04.2006 11:18
|
sonar napisał/a:
pokaz mi no tutaj funkcje open_side :P
pewnie masz tak <td class='costam'>$title</td> -> styles.css szukasz .costam i miedzy { a } wpisujesz text-align:center; i tyle :P
jedno znalazlem pod .capmain2 i wysrodkowuje mi wiatamy i caly srodke phpfusiona a menu po bokach dalej sa z napsiame po lewej i jakos nie moge znalezc tego dorzuce jeszcze srodek theme.php
<?
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#C0C7CF";
$theme_width = "100%";
$theme_width_l = "160";
$theme_width_r = "160";
echo "<script type='text/javascript' src='".THEME."search/global.js'></script>";
echo "<script type='text/javascript' src='".THEME."search/menu.js'></script>";
function render_header($header_content) {
global $theme_width,$settings;
include LOCALE.LOCALESET."search.php";
echo "<script src='".THEME."/grade.js' language='Javascript'></script>";
echo "<table border='0' align='center' width='900' cellspacing='1' cellpadding='0' bgcolor='#4564A4'>";
echo "<tr><td width='100%' height='104' bgcolor='#C0C7CF'><table border='0' width='100%' cellspacing='0' cellpadding='0'>";
echo"<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='900' height='239'>";
echo "<tr><td width='402'><img border='0' src='".THEME."images/logo.jpg' width='900' height='239'></td>";
//Banner code goes here
echo"<img border='0' src='".THEME."images/pixel.gif' width='6' height='0'></td></tr></table>";
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'><tr>";
echo "<td height='26' valign='middle' align='left' background='".THEME."images/menu_bar_back.jpg'>";
echo "<table border='0' width='100%' cellspacing='0' cellpadding='0'><tr>";
//URL's
echo"<td nowrap align=left><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/strona.gif'></a></font></td>
<td nowrap align=left><a href='".BASEDIR."forum/index.php'><img border='0' src='".THEME."images/forum.gif'></a></font></td></td>
<td nowrap align=left><a href='".BASEDIR."photogallery.php'><img border='0' src='".THEME."images/galeria.gif'></a></font></td></td>
<td nowrap align=left><a href='".BASEDIR."edit_profile.php'><img border='0' src='".THEME."images/profil.gif'></a></font></td></td>
<td nowrap align=left><a href='".BASEDIR."downloads.php'><img border='0' src='".THEME."images/download.gif'></a></font></td><td nowrap> ";
echo "<a href='#goto_forumsearch' id='forumsearch'><img src='".THEME."images/szukaj.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script>";
echo "<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>";
echo "<div class='lkmenu_popup' id='forumsearch_menu' style='display:none'>";
echo "<form action='".BASEDIR."search.php' method='post'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/header.gif' height='27'><img align='left' src='".THEME."images/icon_search.gif'><font class='block-title'><center>Search Menu<a name='goto_forumsearch'></a></font>";
echo "</td></tr>";
echo "<tr><td width='300'><font class='lkmenu_text'>Tu wpisz szukan± frazę:</font><hr>";
if ($stype == "") $stype = "n";
echo "<input type='text' name='stext' value='Szukaj...' class='lkmenu_input' style='width:300px' onBlur=\"if(this.value=='') this.value='Szukaj...';\" onFocus=\"if(this.value=='Szukaj...') this.value='';\" ><hr>";
echo "<input type='submit' name='search' value='".$locale['408']."' class='button'><br>";
echo "<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."";
echo "<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."";
echo "<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."";
echo "<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."";
echo "<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."";
echo "<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."";
echo "</td></tr></table></form></div>";
echo"<script type='text/javascript'>LKT_init();</script>";
echo"</td></tr></table>";
echo "<td background='".THEME."images/menu_bar_back.jpg' valign='middle' align='right'>";
echo "<font class='date'><strong>".ucwords(showdate($settings['subheaderdate'], time()))."<img src='".THEME."images/pixel.gif' width='12' height='1'>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='2' bgcolor='#C0C7CF' cellspacing='0' border='0'>";
echo "<img border='0' src='".THEME."images/mid_bar_back.gif' width='100%' height='3'>";
echo "<img border='0' src='".THEME."images/pixel.gif' width='100%' height='3'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<table border='0' cellspacing='0' width='100%' cellpadding='0'>";
echo "<tr><td width='100%' background='".THEME."images/foot1.gif' height='80' colspan='3'> ";
echo "</td></tr>";
echo "<tr><td width='35%' height='22' background='".THEME."images/foot2.gif'>";
echo "<div align='left'><font class='tiny'>";
if ($license == false) {
echo " Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</font></div></td>";
echo "<td width='20%' height='22' background='".THEME."images/foot2.gif'>";
echo "<div align='center'>Phase II by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></div>";
echo "</td>";
echo "<td width='35%' height='22' background='".THEME."images/foot2.gif'>";
echo "<div align='right'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " </div></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='4' cellspacing='0'><tr>";
echo "<td class='capmain'> <font class='news-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='4' cellspacing='0'><tr>";
echo "<td class='capmain'> <font class='news-title'>$subject</font>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='2' cellspacing='0' style='border: 1px solid #4564A4'>";
echo "<tr><td class='capmain2' bgcolor='#6F8DC8'><font class='table-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table bgcolor='#E5E5E5' border='0' style='border: 1px solid #4564A4' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td height='27' width='100%' bgcolor='#E5E5E5' background='".THEME."images/header.gif'>";
echo " <font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td class='side-body'width='100%' '".THEME."images/back1.gif'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table bgcolor='#E5E5E5' border='0' style='border: 1px solid #4564A4' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td height='27' width='100%' bgcolor='#E5E5E5' background='".THEME."images/header.gif'>";
echo "<img align='left' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
orazu dodam ze sprawdzalem z .capamin bez 2 i nie dziala :D
Edytowane przez raper_1987 dnia 10.05.2006 20:53:42
|