ChecK
VIP narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Kov. 20 16:03:50
|
Sveiki,
Bandau koduoti tokį dizą, ir man tarp cellpico ir head'o gaunasi tarpai :
Style.css :
a {
color : #005599;
text-decoration : none;
}
a:hover {
color : #005599;
text-decoration : underline;
}
a.side {
color : #005599;
text-decoration : none;
}
a:hover.side {
color : #005599;
text-decoration : underline;
}
a.white {
color : #ddd;
text-decoration : none;
}
a:hover.white {
color : #ddd;
text-decoration : underline;
}
body {
font-family : Verdana, Arial, Helvetica, sans-serif;
background: #f1f1e9 url(images/bg.gif);
font-size : 11px;
}
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 : 11px;
}
pre {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
}
.alt {
color : #005599;
}
.white-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #fff;
border-top : 1px solid #ccc;
border-bottom : 1px solid #e1e1e1;
padding : 5px;
}
.full-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #aaa;
background-color : #006699;
padding : 5px;
}
.footer {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #aaa;
background-color : #006699;
background-image : url(images/footer.gif);
border-top : 1px solid #e1e1e1;
padding : 5px;
}
.button {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f1f1f1;
height : 20px;
border : 1px solid #ccc;
margin-top : 2px;
}
.textbox {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #555;
background-color : #f8f8f8;
border : 1px solid #ccc;
}
.main-body {
font-size : 11px;
color : #555;
background-image : url(images/bg2.gif);
background-color : #fff;
padding : 4px 4px 5px 4px;
}
.side-body {
font-size : 10px;
color : #777;
background-image : url(images/bg2.gif);
background-color : #fff;
padding : 3px;
}
.main-bg {
color : #555;
background-image : url(images/bg2.gif);
background-color : #fff;
padding : 5x;
}
.outer-border {
border : 1px solid #ccc;
}
.border {
border : 1px solid #e1e1e1;
}
.side-border-left {
border-right : 1px solid #e1e1e1;
padding : 5px;
}
.side-border-right {
border-left : 1px solid #e1e1e1;
padding : 5px;
}
.news-footer {
font-size : 10px;
color : #555;
background-color : #f1f1f1;
background-image : url(images/centerdown.png);
border-top : 1px solid #e1e1e1;
padding : 3px 4px 4px 4px;
}
.a-footer {
font-size : 10px;
color : #fff;
height: 20px;
background-image : url(images/paneldown.png);
padding : 3px 4px 4px 4px;
}
.capmain {
font-family : Arial;
font-size : 12px;
font-weight : bold;
color : #fff;
text-align:left;
height:35px;
background-image: url(images/cellpic1.gif);
padding : 10px 20px 5px 30px;
}
.scapmain {
font-family : Arial;
font-size : 12px;
font-weight : bold;
color : #fff;
text-align:center;
height:35px;
background-image: url(images/cellpic.gif);
padding : 2px 2px 0px 7px;
}
.tbl-border {
color : #555;
background-color : #e1e1e1;
}
.tbl {
font-size : 11px;
color : #555;
background-color : #fff;
padding : 4px;
}
.tbl1 {
font-size : 11px;
color : #555;
background-color : #fff;
padding : 4px;
}
.tbl2 {
font-size : 11px;
color : #555;
background-color : #f1f1f1;
padding : 4px;
}
.forum-caption {
font-size : 11px;
font-weight : bold;
color : #888;
background-color : #f1f1f1;
padding : 2px 4px 4px 4px;
}
.quote {
font-size : 11px;
color : #555;
background-color : #f8f8f8;
padding : 4px;
margin : 0px 20px 0px 20px;
border : 1px solid #bbb;
}
.poll {
height : 12px;
border : 1px solid #000;
}
.comment-name {
font-weight : bold;
color : #005599;
}
.shoutboxname {
font-weight : bold;
color : #005599;
background-color : #fff;
}
.shoutbox {
color : #777;
background-color : #fff;
}
.shoutboxdate {
font-size : 10px;
color : #888;
background-color : #fff;
}
.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 : #fff;
}
.side-label {
color : #555;
background-color : #f1f1f1;
padding : 2px 2px 3px 2px;
}
2)
.white-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #fff;
padding : 0px 0px 0px 0px ;
height: 20px;
width: 900px;
background-image: url(images/fonas.gif);
background-color : #ffffff;
border : 2px solid #ffffff;
}
Su paddingu bandžiau nėjo. Kad būtų normaliai susispdaudęs su headu ir apatine panele.
Jeigu reikai theme.php sakykit, be atrodo kad paddinge čia probleme.
Kode kur yra klaida jei galit parašykite kur, kad kitą kartą neadryčiau tokių klaidų.
Geriau būtų be off-topic.
Redagavo ChecK 2009 Bir. 19 18:06:45 |
ChecK
VIP narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Kov. 20 16:03:50
|
Up.
|
And2s
VIP narys
Pulkininkas
Pranešimai: 329
Įstojęs: 2009 Bal. 30 19:04:04
|
.scapmain {
font-family : Arial;
font-size : 12px;
font-weight : bold;
color : #fff;
text-align:center;
height:35px;
background-image: url(images/cellpic.gif);
padding : 2px 2px 0px 7px;
|
samsung123
Narys
Terminatorius
Pranešimai: 1610
Įstojęs: 2007 Spa. 15 17:10:09
|
eik tu kumedy
-------------------
prie side-border-left ir right padding padaryk:
padding: 0px 0px 0px 0px;
|
And2s
VIP narys
Pulkininkas
Pranešimai: 329
Įstojęs: 2009 Bal. 30 19:04:04
|
coreN parašė:
eik tu kumedy
-------------------
prie side-border-left ir right padding padaryk:
padding: 0px 0px 0px 0px;
Joks aš ne kumedys genijau. Aš parodžiau kurią vietą keist.
|
ChecK
VIP narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Kov. 20 16:03:50
|
Ačiū.
2)
.white-header {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 10px;
color : #fff;
padding : 0px 0px 0px 0px ;
height: 20px;
width: 900px;
background-image: url(images/fonas.gif);
background-color : #ffffff;
border : 2px solid #ffffff;
}
Su paddingu bandžiau nėjo. Kad būtų normaliai susispdaudęs su headu ir apatine panele.
|
samsung123
Narys
Terminatorius
Pranešimai: 1610
Įstojęs: 2007 Spa. 15 17:10:09
|
cia gal sub-header, ten bandyk padding 0 0 0 0
|
ChecK
VIP narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Kov. 20 16:03:50
|
Čia ir yra sub-header, tik pas mane ne sub vadinasi o white, 0 padding'ą bandžiau.
|
samsung123
Narys
Terminatorius
Pranešimai: 1610
Įstojęs: 2007 Spa. 15 17:10:09
|
borisai, paziurek tiksliai koke class, nes su padding turi veikt
|
ChecK
VIP narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Kov. 20 16:03:50
|
Borisai, <table align='center'><td class='white-header'>
|
And2s
VIP narys
Pulkininkas
Pranešimai: 329
Įstojęs: 2009 Bal. 30 19:04:04
|
duok tu visą theme.php
|
ChecK
VIP narys
Generolas
Pranešimai: 1074
Įstojęs: 2008 Kov. 20 16:03:50
|
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#ffffff";
$theme_width = "950px";
$theme_width_l = "250";
$theme_width_r = "250";
function render_header($header_content) {
global $theme_width,$settings;$db_prefix;
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='right' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='left' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
include_once "header.php";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n
<td align='center'><table align='center'><td class='white-header'>".showsublinks("·")."
</center>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'>".stripslashes($settings['footer'])."<br>\n";
if (!$license) { echo showcopyright("white")."\n"; } echo showcounter()."<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='main-body'>$news</td>
<td class='capmain'>$subject</td>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info,"<br>").newsopts($info,"·").closeform("N",$info['news_id']);
echo "
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<td class='capmain'>$subject</td>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
|
samsung123
Narys
Terminatorius
Pranešimai: 1610
Įstojęs: 2007 Spa. 15 17:10:09
|
Bl.et, nuimk border: 2px; viskas ok bus. nuo white-header
|