Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia pagalbos del texto ant cellpic'u

Parašė Jaunelis· 2008 Kov. 20 13:03:40
#1

kaip padaryti kad ant naujienu cellpic'u textas butu per viduri ?
va mano style.css failas:
a {
   color : #23b3f6;
   text-decoration : none;
}

a:hover {
   color : #23b3f6;
   text-decoration : underline;
}

a.side {
   color : #23b3f6;
   text-decoration : none;
}

a:hover.side {
   color : #23b3f6;
   text-decoration : underline;
}

a.white {
   color : #23b3f6;
   text-decoration : none;
}

a:hover.white {
   color : #23b3f6;
   text-decoration : underline;
}

body {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   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;
   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-color : #fff;
   padding : 4px 4px 5px 4px;
}

.side-body {
   font-size : 10px;
   color : #777;
   background-color : #fff;
   padding : 4px;
}

.main-bg {
   color : #555;
   background-color : #fff;
   padding : 5px;
}

.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;
   border-top : 1px solid #e1e1e1;
   padding : 3px 4px 4px 4px;
}

.capmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   font-weight : bold;
   color : #000;
   background: url('images/cellpic.gif');
        background-color : #f1f1f1;
   border-bottom : 1px solid #e1e1e1;
   padding : 8px 0px 4px 0px;
}

.scapmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 10px;
   font-weight : bold;
   color : #23b3f6;
   background: url('images/cellpic2.gif');
        background-color : #f1f1f1;
   border-bottom : 1px solid #e1e1e1;
   padding : 6px;
}

.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;
}



Redagavo Jaunelis· 2008 Kov. 20 13:03:07

Parašė sniuff· 2008 Kov. 20 13:03:34
#2

themes.php failą reikia redaguoti...

Parašė Jaunelis· 2008 Kov. 20 13:03:08
#3

Ups nezinojau wa theme php:
<?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 = "940";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class=border='0'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class=border='0'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><tr>
      <td colspan='5'>
         <img src='".THEME."images/header.jpg' width='940' height='280' alt=''></td>
   </tr></td>
</tr>
</table>
</td>
</tr>
</table>\n";



echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' class='footer'>
<tr>
<td width='93'></td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<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," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<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";

}
?>



Parašė sniuff· 2008 Kov. 20 13:03:07
#4

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain' align='center'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;"merkia akį.newsopts($info,"&middot;"merkia akį.closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}



Parašė Jaunelis· 2008 Kov. 20 13:03:26
#5

aciu lbj;)

Parašė sniuff· 2008 Kov. 20 13:03:16
#6

Prašom...

Parašė Toonis· 2008 Kov. 20 13:03:57
#7

Geresnis būdas yra į .scapmain { ir .capmain { įterpti:
text-align: center;



Parašė Jaunelis· 2008 Kov. 20 14:03:04
#8

palaukit palaukit dar reikia pagalbos kaip ppakelt texta naujienos i virshu truputi kad butu taip pat kaip ir panelese ? wa img:

Parašė Toonis· 2008 Kov. 20 14:03:48
#9

Susirask capmain skiltį ir prirašyk:
padding-bottom: 4px;




Kur paryškinta keisk kiek nori, kad pixelių pakiltu į viršų.

Redagavo Toonis· 2008 Kov. 20 14:03:25

Parašė Jaunelis· 2008 Kov. 20 14:03:24
#10

o cia kuriam faile styles ???

Parašė sniuff· 2008 Kov. 20 14:03:29
#11

.capmain {
   font-family : Verdana, Arial, Helvetica, sans-serif;
   font-size : 11px;
   font-weight : bold;
   color : #000;
   background: url('images/cellpic.gif'merkia akį;
   background-color : #f1f1f1;
   border-bottom : 1px solid #e1e1e1;
   padding : 6px;
}



Parašė Toonis· 2008 Kov. 20 14:03:58
#12

Jo styles.css, .capmain { skiltis.

Parašė Jaunelis· 2008 Kov. 20 14:03:00
#13

aciu