Forum. MyNuke.ru

Forum. MyNuke.ru (http://forum.mynuke.ru/index.php)
-   Общие вопросы (http://forum.mynuke.ru/forumdisplay.php?f=19)
-   -   как убрать пробелы между таблицами (http://forum.mynuke.ru/showthread.php?t=1671)

awarior 31.03.2006 20:35

как убрать пробелы между таблицами
 
PHP код:
<?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\" /> поробуйте либо убрать либо уменьшить блину, в зависимости от темы.


Часовой пояс GMT +4, время: 17:55.

Copyright © 2005 by Soniks