PDA

View Full Version : Нужна помощь в искожоном блоке, Двойное <br> во всех блоках


FR@ER
12.09.2007, 18:46
Здравствуйте,
Поставил темку но есть проблема -
Во всех блоках есть искожение, ощущение что в начале каждого блока стоит <br><br> или 2 раза сделали пробел или Enter
Вот скрин
http://i15.tinypic.com/2zrdshe.jpg
Как сделать так чтоб блок начинался не с 3-й строки или в чём ошибка? -
Как сделать так чтоб содержимое каждлого блока начиналось с самого начала а не с <br><br>

вот код

/************************************************************/
/* Function themesidebox() */
/************************************************************/

function themesidebox($title, $content){

if($title){
$pic_title="themes/LA2-Luisa/images/$title.jpg";
if(file_exists("$pic_title")){
$title_pictures="$pic_title";
}else{
$title_pictures="themes/LA2-Luisa/images/default_pictures.jpg";
}
}
print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"183\">\n";
print " <tbody>\n";
print " <tr height=\"11\">\n";
print " <td height=\"17\" width=\"8\"><img alt=\"\" src=\"themes/LA2-Luisa/images/status_box_11.gif\" border=\"0\" height=\"32\" width=\"8\"></td>\n";
print " <td height=\"17\" width=\"168\"><img alt=\"\" src=\"$title_pictures\" border=\"0\" height=\"32\" width=\"168\"></td>\n";
print " <td height=\"17\" width=\"7\"><img alt=\"\" src=\"themes/LA2-Luisa/images/status_box_13.gif\" border=\"0\" height=\"32\" width=\"7\"></td></tr>\n";
print " <tr>\n";
print " <tr>\n";
print " <td background=\"themes/LA2-Luisa/images/status_box_21.gif\" width=\"8\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"8\" width=\"8\"></td>\n";
print " <td width=\"168\">\n";
print " <table background=\"themes/LA2-Luisa/images/status_box_in_bg.jpg\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"168\">\n";
print " <tbody>\n";
print " <tr>\n";
print " <td background=\"themes/LA2-Luisa/images/status_box_in_l.gif\" width=\"9\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"9\" width=\"9\"></td>\n";
print " <td width=\"148\">\n";
print " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"148\">\n";
print " <tbody>\n";
print " <tr>\n";
print " <td width=\"148\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"8\" width=\"1\"></td></tr></tbody></table>\n";
print " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"148\">\n";
print " <tbody>\n";
print " <tr>\n";
print " <td width=\"148\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"8\" width=\"1\"><span class=\"style8\">\n";
print "\n";

print "$content\n";
print "\n";
print "</span></td>\n";
print " </tr></tbody>\n";
print " </table>\n";
print " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"148\">\n";
print " <tbody>\n";
print " <tr>\n";
print " <td width=\"148\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"3\" width=\"1\"></td></tr></tbody></table></td>\n";
print " <td background=\"themes/LA2-Luisa/images/status_box_in_r.gif\" width=\"11\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"11\" width=\"11\"></td></tr>\n";
print " <tr>\n";
print " <td height=\"9\" width=\"9\"><img alt=\"\" src=\"themes/LA2-Luisa/images/status_box_in_b1.gif\" border=\"0\" height=\"9\" width=\"9\"></td>\n";
print " <td background=\"themes/LA2-Luisa/images/status_box_in_b2.gif\" height=\"9\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"9\" width=\"9\"></td>\n";
print " <td height=\"9\" width=\"11\"><img alt=\"\" src=\"themes/LA2-Luisa/images/status_box_in_b3.gif\" border=\"0\" height=\"9\" width=\"11\"></td></tr></tbody></table>\n";
print " </td>\n";
print " <td background=\"themes/LA2-Luisa/images/status_box_23.gif\" width=\"7\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"7\" width=\"7\"></td></tr>\n";
print " <tr height=\"11\">\n";
print " <td height=\"11\" width=\"8\"><img alt=\"\" src=\"themes/LA2-Luisa/images/status_box_31.gif\" border=\"0\" height=\"11\" width=\"8\"></td>\n";
print " <td height=\"11\" width=\"168\"><img alt=\"\" src=\"themes/LA2-Luisa/images/status_box_32.gif\" border=\"0\" height=\"11\" width=\"168\"></td>\n";
print " <td height=\"11\" width=\"7\"><img alt=\"\" src=\"themes/LA2-Luisa/images/status_box_33.gif\" border=\"0\" height=\"11\" width=\"7\"></td></tr>\n";
print " <tr>\n";
print " <td colspan=\"3\"><img alt=\"\" src=\"themes/LA2-Luisa/images/dot.gif\" border=\"0\" height=\"5\" width=\"1\"></td></tr></tbody></table>\n";



}