Parašė INFINITY· 2008 Lap. 12 21:11:04
#1
Tai va turiu tema ir noriu padaryt, kad man foto rodytu 1 vietoj 3 butu gerai jai ir center padarytumet.
Foto:
vidurine foto vadinasi g-top.gif sonines g-left ir g-right man rejk kad tik viena butu.
Cia kodas:
Theme.php
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='g-left'><img src='".THEME."images/blank.gif' width='7' height='24' alt='' style='display:block'></td>
<td class='g-top'>$title</td>
<td class='g-right'><img src='".THEME."images/blank.gif' width='9' height='24' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='g-bar-left'><img src='".THEME."images/blank.gif' width='7' height='1' alt='' style='display:block'></td>
<td class='main-body'>\n";
}
styles
.g-top {
font-family:Verdana,Tahoma,Arial,Sans-Serif;
font-size:11px; font-weight:normal;
color:#463618;
height:33px;
padding:0px 2px 3px 2px;
background-image:url(images/g-top.gif); background-repeat:repeat-x;
}
.g-left {
width:120px; height:33px;
background-image:url(images/g-left.gif);
}
.g-right {
width:120px; height:33px;
background-image:url(images/g-right.gif);
}
Didelis aciu :) Jai kas galiu parasyt visa koda...