kraftwerk
06-08-2002, 03:23 PM
how do i set a border (top and bottom only) to a certain <TR> of a table? i do not want the entire table to have a border; just this certain <TR>
setting borders to certain parts of a tablekraftwerk 06-08-2002, 03:23 PM how do i set a border (top and bottom only) to a certain <TR> of a table? i do not want the entire table to have a border; just this certain <TR> ChiefRedBull 06-08-2002, 03:57 PM border-left border-top border-right border-bottom These can be used in the STYLE tags, or inline in the tag - <style type=text/css> table {border-top:'red'} </style> <tr style="border-top:'red'"> kraftwerk 06-08-2002, 04:55 PM i tried putting it inside the tag and it didnt work <table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#000000" align="center"> <tr style="border-top:'black'" style="border-bottom:'black'" bgcolor="c0c0c0"><td><small>Saturday | June 8 | 2002</small></td></tr> www.jamcalc.org/test.html Derek Stone 06-08-2002, 05:41 PM I'm fairly sure table rows can't have borders. However here's a work-around: <TABLE BORDER=0 CELLSPACING=0> <TR> <TD STYLE="border-top: solid #000000 1px; border-bottom: solid #000000 1px; border-left: solid #000000 1px;"> An example of giving rows borders</TD> <TD STYLE="border-top: solid #000000 1px; border-bottom: solid #000000 1px;"> An example of giving rows borders</TD> <TD STYLE="border-top: solid #000000 1px; border-bottom: solid #000000 1px; border-right: solid #000000 1px;"> An example of giving rows borders</TD> </TR> </TABLE> Good Luck -CL ChiefRedBull 06-09-2002, 07:16 AM Ah yes, my mistake. TRs can't, but as CL rightly pointed out, TDs can. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum