Przedszkolak
Postów: 14
Data rejestracji: 11.10.2008 22:26
|
Witam, jestem w trakcie przerabiania stylu 2Bright, który znalazłem na Angielskim supporcie php-f.
Stworzyłem własny top w photoshopie, wygenerowałem kod html pod to ( top jest w formie tabeli ) i wkleiłem w kod themu. Tu się właśnie rozpoczyna problem, bo kombinowałem już z szerokością skórki, szerokością tabeli i w cssie i nadal się rozjeżdża cała tabela topu. Załączam zawartość plików theme.php i styles.css i link do podglądu strony.
http://dust2only....
theme.php
/// Theme general
define("THEME_BULLET", "");
define("THEME_WIDTH", "960");
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";
function get_head_tags(){
}
function render_page($license=false) {
global $aidlink, $locale, $settings, $main_style,$fusion_page_title;
echo "<div class='wrapper'>
<div id='header'>
<table id='Tabela_01' width='930' height='300' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='6'>
<img src='".THEME."/images/top_01.png' width='960' height='246' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."/images/top_02.png' width='392' height='54' alt=''></td>
<td>
<img src='".THEME."/images/top_03.png' width='81' height='54' alt=''></td>
<td>
<img src='".THEME."/images/top_04.png' width='118' height='54' alt=''></td>
<td>
<img src='".THEME."/images/top_05.png' width='106' height='54' alt=''></td>
<td>
<img src='".THEME."/images/top_06.png' width='128' height='54' alt=''></td>
<td>
<img src='".THEME."/images/top_07.png' width='135' height='54' alt=''></td>
</tr>
</table>
</div>
<div class='content'>
<div id='main' ".((LEFT || RIGHT) ? "": "style='width:100%'").">
".U_CENTER.CONTENT.
L_CENTER."
</div>
".((LEFT || RIGHT) ? "<div id='side'>".RIGHT.LEFT."</div>" : "")."
</div>
<div id='footer'>
<div class='right'><ul><li>".showcounter()."</li>
<li>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</li></ul></div>
".(!$license ? "<div>".showcopyright()."<br />Theme <b>2Bright</b> created by <a href='http://simplevision.dk' lang='en' title='php-fusion themes'>simplevision</a> and funded by <a href='http://live-koncerter.dk' title='Koncerter i Danmark' lang='da'>koncerter i danmark</a></div>" : "").stripslashes($settings['footer'])."
</div> </div>
<script type='text/javascript' src='".THEME."js/fusion.js' ></script>
<script type='text/javascript'>
$().ready(function() {
$('body').MakeFusion({
thumbsPerRow:".$settings['thumbs_per_row']."
});
});
</script>
";
}
function render_news($subject, $news, $info) {
global $locale;
opentable(isset($_GET['readmore'])?$subject: "");
echo (isset($_GET['readmore'])? "": "<a href='news.php?readmore=".$info['news_id']."'><h2 class='panelcap'>".$info['news_subject']."</h2></a>");
echo "<div class='item'>".$news."</div>
<div class='item-footer'>
".newsposter($info," ·").newsopts($info," ·").itemoptions("N",$info['news_id'])."</div>";
closetable();
}
function render_article($subject, $article, $info) {
global $locale;
opentable($subject);
echo "<div class='item'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>
<div class='item-footer'>
".articleposter($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']).
"</div>";
closetable();
}
function opentable($title) {
global $locale;
$fileName=basename(FUSION_SELF, ".php");
$id = array_search($title, $locale);
$css= $fileName." css".$id;
echo "<div ".(preg_match("[^0-9]",$id)? "id='{$id}'":"")." class='panelbody $css'>".(!empty($title) ? "<h2 class='panelcap'>$title </h2>" : "");
}
function closetable() {
echo "</div>";
}
$panel_collapse = false;
function openside($title, $collapse = false, $state = "on") {
static $box_id = 0; $box_id++;
global $panel_collapse, $p_data; $panel_collapse = $collapse;
if($p_data['panel_filename'] == "css_navigation_panel") $title = "";
opentable(($collapse ? panelbutton($state,$box_id) : "").$title);
echo ($collapse ? panelstate($state, $box_id) : "");
}
function closeside() {
global $panel_collapse, $p_data;
echo ($panel_collapse ? "</div>" : "");
closetable();
}
function render_search() {
$query = (isset($_GET['stext']) ? urldecode($_GET['stext']) : "" );
echo "
<div id='search'>
<form id='simplesearch' name='searchform' method='get' action='";
echo (preg_match("(forum)",cleanurl($_SERVER['PHP_SELF']))?'../':'');
echo "search.php'>
<input type='hidden' value='all' name='stype' id='searchtype' />
<input type='text' name='stext' value='{$query}' class='textbox' />
<input type='submit' value='Find' class='button' />
</form>
</div>
";
styles.css :
/*----------------------------------------------------------
RESET
v1.0 | 20080212
http://meyerweb.com/eric/tools/css/reset/
-----------------------------------------------------------*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;background:transparent;margin:0;padding:0}body{line-height:1;background:#3b2c45;background-image: url("http://dust2only.pl/amethyst/themes/2Bright/images/bg.jpg");background-repeat:no-repeat;}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}code,pre{background:#111;color:#FFF;display:block;padding:10px}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}a{text-decoration:none;color:#555;font-family:Arial,Verdana,Tahoma,sans-serif}input{font-size:16px;margin:5px;padding:5px}
/*----------------------------------------------------------
THEME
-----------------------------------------------------------*/
.wrapper{width:960px;background:#f3f0f2;margin:0 auto}#header{width:930px;height:300px;background-image: url("http://dust2only.pl/amethyst/themes/2Bright/images/bg.jpg");}#menu{width:960px;margin:0 auto}#logo{height:59px;background:url(images/logo.png) no-repeat;width:250px;display:inline-block;margin-bottom:-10px}.logo a{font-family:arial black, euphemia, helvetica, verdana, tahoma, sans-serif;font-size:25px;font-weight:700;line-height:50px;color:#fff;text-shadow:rgba(0,0,0,0.01) 0 0 5px}#container{border-top:1px solid #eee;overflow:hidden;position:relative;background:0 color-stop(0.6,#fefefe) );margin:0 auto;padding:0 10px}#container ul{float:left;overflow:hidden;text-align:right}#container ul li{display:inline-block;float:left}#container ul a span{display:inline-block;color:#999;font-family:Arial, helvetica, Verdana, Sans-Serif;font-size:12px;text-align:center;padding:14px}#container ul a span i{display:block;color:#bbb;font-size:10px;font-style:normal;padding:5px}#tools{display:block;width:960px;margin:0 auto 10px}#user-nav{float:right;background:#FFF;-moz-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px}ul#user-nav li{float:left;color:#fff;padding:0}ul#user-nav a{color:#999;font-size:12px;display:inline-block;padding:5px}#banner{background:#FAFAFA;border-top:10px solid #EEE;border-bottom:1px solid #e0e0e0;margin-bottom:5px;min-height:30px;overflow:hidden}#banner h1{color:#0074aa;font-family:kootenay, 'Lucida Grande' , 'Lucida Sans Unicode' , Verdana, Jamrul, sans-serif;font-size:25px;font-weight:400;line-height:35px;width:940px;margin:0 auto;padding:10px}#bannerdump{font-size:16px;font-family:Verdana,Sans-Serif;color:#888}.content{overflow:hidden;width:960px;margin:0 auto}.pagenav{background:none;border:none;font-size:11px;line-height:13px;outline:none;font-family:helvetica,arial, Verdana, Tahoma, Sans-Serif;padding:10px}.pagenav span,.pagenav a,.pagenav a:hover{background:#fafafa;display:inline-block;text-decoration:none;border:1px solid #fafafa;outline:1px solid #AAA;margin:2px;padding:5px 10px}.panelcap{padding-bottom:10px}.panelbody{background:#fff;margin-bottom:5px;padding:10px}.item,.panelbody{overflow:hidden;font-size:14px;line-height:24px;font-family:Verdana, Arial, Geneva, helvetica, Sans-Serif}.news-category{float:left;margin-right:10px;margin-bottom:10px}#footer{font-family:sans-serif;font-size:12px;color:#999;border-top:1px solid #eee;line-height:16px;background:#fafafa;margin:30px auto;padding:10px}#footer .right{float:right}.item-footer{border-bottom:1px solid #EEE;color:#AAA;margin-top:10px;text-align:right;padding:10px}#main{float:left;width:671px;margin-bottom:10px;background:#fff;border-right:1px solid #eee;color:#555}#main h2.panelcap{display:block;font-weight:400;text-transform:uppercase;font-size:20px;color:#ccc;background:#fff;font-family:Arial Black, Geneva, helvetica, Sans-Serif;padding:10px 0}#main .news a h2.panelcap{font-size:28px;line-height:40px}#main .panelbody.news:hover a h2.panelcap{color:#0074aa;background:#fefefe}#side{float:right;width:287px;color:#888}#side .cssglobal_001 .panelcap{padding:10px 15px}#side .cssglobal_001 a{border-top:1px solid #fafafa;display:inline-block;font-weight:700;text-transform:uppercase;width:100%;padding:5px 5px 5px 15px}#side .cssglobal_001 a:hover{background:#fafafa}#side .cssglobal_001 a:hover i{color:#999}#side .cssglobal_001 i{display:block;font-size:12px;font-style:normal;font-weight:400;color:#aaa}.shoutbox a.side{display:inline;width:auto}.code_bbcode div{border:1px solid #ddd;border-left:3px solid #ccc}.code_bbcode div.tbl2{border-bottom:none}.quote,.admin-message{border:1px solid #ddd;border-left:3px solid #ccc;background:#f3f3f3;margin:0 2em;padding:3pt}.admin-message{color:#999;width:80%;margin:1em auto;padding:.5em}code,pre{font-family:monospace;font-size:1.1em}input[type=button],input[type=submit]{background:#DDD;border:1px solid #DDD;border-radius:4px;color:#333;font-weight:700;padding-top:6px;text-transform:capitalize}input[type=button]:hover,input[type=submit]:hover{background:#444;color:#fff;border:1px solid #444666;cursor:pointer}input[value=link],input[value=img],input[value=center],input[value=small],input[value=alt],input[value=small2]{font-weight:400;font-size:12px}input[name=publish]{background:#78b45d url(images/accept.png) no-repeat 5px 7px;border:0;padding-left:30px;padding-right:10px}input[name=delete]{background:#a51314 url(images/delete.png) no-repeat 5px 7px;border:0;padding-left:30px;padding-right:15px}input[name=publish]:hover{background:#000 url(images/accept.png) no-repeat 5px 7px;border:0}input[name=delete]:hover{background:#000 url(images/delete.png) no-repeat 5px 7px;border:0}td{vertical-align:top;padding:5px}.forum_idx_table td,.forum_table td,.forum_thread_table td{border-bottom:1px solid #eee}.tbl1,.tbl2,.forum_name span.small,.forum-caption{font-size:10px;text-transform:none;font-weight:400}.forum-caption.forum_cat_name,.forum_name{font-size:16px;text-transform:capitalize}.forum_name,.forum_thread_user_post{font-size:14px;line-height:24px;font-family:Verdana, Arial, Geneva, helvetica, Sans-Serif}.forum_table td a{font-size:16px}body.mcecontentbody{background-color:#FFF;color:#000}.mcecontentbody a{color:blue!important}#search{float:right;display:inline-block;position:relative}#search_drop_menu{display:inline-block;margin-left:-120px;text-align:right;width:100px;cursor:pointer}#main .gallery{overflow:hidden;padding:0 0 0 2px}#main .photogallery_album_photo_link{width:159px;height:159px;overflow:hidden;float:left;margin-left:2px;margin-top:2px;display:block;text-align:center}#main .photogallery_photo_desc{text-align:left}#main .photogallery.css420 h2.panelcap{display:none;margin-bottom:0;padding-bottom:5px}#main .photogallery_album_photo{float:left;display:block}#main .photogallery_album_photo_link b{float:left;font-size:12px;font-weight:400;text-align:left;text-transform:uppercase;padding:5px}#main .photogallery_album_thumb{vertical-align:top;border:0;padding-right:10px}.photogallery_album_desc{font-size:14px;margin-right:10px}.panelbody.photogallery.css420{padding:10px 10px 5px}.photogallery.css420 table div{font-size:14px}.panelbody.photos form[name=move_form]{width:650px}.panelbody.photos form[name=move_form] td{float:left;width:300px;border:1px solid #eee;min-height:500px;margin:4px}.panelbody.photos form[name=move_form] td:hover{background:#eff}a:hover,#menu .current a,#menu a:hover span,.item-footer a,.item-footer a:hover,#main .forum_thread_user_post a:hover{color:#000}#container ul a span:hover,#footer a{color:#666}#container .current span,#container .current span i,#container ul li,#container .current:hover span,#container .current:hover span i,#main .news a,#main .articles a,#main .forum_thread_user_post a{color:#0074aa}#side span.bullet,#searchform{display:none}#side .cssglobal_001,#searchform td{padding:0}
Edytowane przez Pieka dnia 08.04.2011 15:01:46
|