PDA

View Full Version : как убрать пробелы между таблицами


awarior
31.03.2006, 20:35
<?php

/************************************************************/
/* OpenTable Functions */
/* */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to */
/* properly close our tables. The difference is that */
/* OpenTable has a 100% width and OpenTable2 has a width */
/* according with the table content */
/************************************************************/

function OpenTable() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td bgcolor=\"#A9B8C2\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td>";
}

function CloseTable() {
echo "</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl\"><tr>
<td class=\"tbll\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblbot\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblr\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td>
</tr></table>
</td>
</tr>
</table>
";
}

function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table align=\"center\" width=\"50%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td bgcolor=\"#A9B8C2\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
<tr>
<td>";
}

function CloseTable2() {
echo "</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"tbl\"><tr>
<td class=\"tbll\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblbot\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td>
<td class=\"tblr\"><img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /></td>
</tr></table>
</td>
</tr>
</table>
";
}

?>

Soniks
31.03.2006, 21:57
awarior пробелы могут возникнуть из-за параметра таблицы cellpadding, поробуйтье указать 0 везде, а так же из-за изображения в один пиксиль <img src=\"themes/iCGstation/forums/images/spacer.gif\" alt=\"\" width=\"8\" height=\"4\" /> поробуйте либо убрать либо уменьшить блину, в зависимости от темы.