phpcellspacing

PHP to replace table tag cellspacing=”0”


table cellspacing is coded inside html table tag

can php 5 set all table cellspacing="0" without any table tag "cellspacing" ?


Solution

  • PHP just generates stuff (usually HTML, but sometimes images or anything really). The result in this case is still just HTML.

    However, you could just use the border-spacing:0 CSS rule. This removes the spaces between cells, without actually collapsing the borders so it doesn't break your layouts.