
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
RULES=GROUPS allows you to put borders between groups of table cells. There are two ways cells can be grouped: by row and by column. Let's go over each of them. Note that currently Netscape does not recognize RULESGrouping By RowTo group by row use the<THEAD ...><TBODY ...><TFOOT ...><THEAD ...><TBODY ...><TFOOT ...>
<TABLE BORDER=2 RULES=GROUPS> <THEAD> <TR> <TH>Name</TH> <TH>Food</TH> <TH>Price</TH> </TR> </THEAD> <TBODY> <TR> <TD>Starflower</TD> <TD>stir fied tofu</TD> <TD>5.95</TD> </TR> <TR> <TD>Miko</TD> <TD>vegetable rice soup</TD> <TD>4.95</TD> </TR> <TR> <TD>Andy</TD> <TD>hummus</TD> <TD>3.95</TD> </TR> <TR> <TD>Ping</TD> <TD>french toast</TD> <TD>5.95</TD> </TR> </TBODY> <TFOOT> <TR> <TH COLSPAN=2>Total</TH> <TD>20.80</TD> </TR> </TFOOT> </TABLE> which gives us this table
Grouping By ColumnTo group by column use the<COLGROUP ...>SPAN<COLGROUP ...><COLGROUP SPAN="...">SPAN<COLGROUP ...>
<TABLE BORDER=1 CELLPADDING=4 RULES=GROUPS FRAME=BOX> <COLGROUP></COLGROUP> <COLGROUP SPAN=3></COLGROUP> which gives us this table:
Copyright Idocs, Inc. Written by Miko Sullivan |
|||||||||||||||||||||||||||||||||||||||||||||||||||
| About the NetVisits, Inc Network | Advertise Developer Tutorials hosted by HostGator. Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy. |