NYCPHP Meetup

NYPHP.org

[nycphp-talk] Q) learning php - drawing table border around em pty<td>

Scott Mattocks crisscott at netzero.com
Wed Feb 11 09:49:04 EST 2004


Shawn Lawyer wrote:

> I agree with Aaron!
> If you just put this <img src="spacer.gif" width="1" height="1" border="0"
> />
> in place of the null fields it'll solve your problem. 

No! Why create all of those extra requests when the solution is part of 
the HTML standard.  You don't need any hacks or work around you just 
need to set up your table properly. From w3.org 
(http://www.w3.org/TR/1998/REC-html40-19980424/struct/tables.html#adef-rules)

rules = none|groups|rows|cols|all [CI]
     This attribute specifies which rules will appear between cells 
within a table. The rendering of rules is user agent dependent. Possible 
values:

         * none: No rules. This is the default value.
         * groups: Rules will appear between row groups (see THEAD, 
TFOOT, and TBODY) and column groups (see COLGROUP and COL) only.
         * rows: Rules will appear between rows only.
         * cols: Rules will appear between columns only.
         * all: Rules will appear between all rows and columns.

Scott Mattocks



More information about the talk mailing list