May 7, 2002 #1 z35 Programmer Dec 21, 2001 206 US Hi, I gave my table a border. Is it possible to give all the cells a border and remove the border that is around the entire table. All the components have borders but the big border around the whole thing shouldn't be seen.
Hi, I gave my table a border. Is it possible to give all the cells a border and remove the border that is around the entire table. All the components have borders but the big border around the whole thing shouldn't be seen.
May 7, 2002 #2 sweevo Programmer Jan 30, 2002 182 GB Is this what you're after... In the Head section <style> table { border: 0px; } td { border: 2px solid red; } </style> Upvote 0 Downvote
Is this what you're after... In the Head section <style> table { border: 0px; } td { border: 2px solid red; } </style>
May 7, 2002 Thread starter #3 z35 Programmer Dec 21, 2001 206 US yes..but is it possible to do this without style sheets, in html?? Upvote 0 Downvote
May 7, 2002 #4 theocraticmind Programmer Apr 19, 2002 318 CA it dosen't seem to work without it. is there some reason why you do not wish to use css? Upvote 0 Downvote
May 7, 2002 Thread starter #5 z35 Programmer Dec 21, 2001 206 US I prefer doing things in a simpler way if possible...in case of browsers that do not support css. in this case...i'll use css. however...I have more than one table in my page and I want this to apply to only one table. can i make this into a class and apply it to the table i want?? Upvote 0 Downvote
I prefer doing things in a simpler way if possible...in case of browsers that do not support css. in this case...i'll use css. however...I have more than one table in my page and I want this to apply to only one table. can i make this into a class and apply it to the table i want??
May 7, 2002 #6 pcorreia Programmer Feb 22, 2002 301 US Check out the Code: rules and Code: frame attributes of the Code: <table> tag. Here are some references: rules: http://www.w3.org/TR/html401/struct/tables.html#adef-rules frame: http://www.w3.org/TR/html401/struct/tables.html#adef-frame Upvote 0 Downvote
Check out the Code: rules and Code: frame attributes of the Code: <table> tag. Here are some references: rules: http://www.w3.org/TR/html401/struct/tables.html#adef-rules frame: http://www.w3.org/TR/html401/struct/tables.html#adef-frame
May 7, 2002 #7 bluranj Programmer Mar 11, 2002 239 US nested table is the answer to achieving this. The outher table background color works as the border eg <table cellspacing="0" cellpadding="0" border="0" bgcolor="0000CC" width="400"> <tr> <td colspan="2" width="100%"> <!-- EMBEDDED TABLE BEGINS HERE > <table cellpadding="0" cellspacing="0" border="0" bgcolor="0000CC" height="15" width="100%"> <tr> <td width="33%" height="100%" bgcolor="#9400d3"> </td> <td width="34%" height="100%"> </td> <td width="33%" height="100%" bgcolor="#9400d3"> </td> </tr> </table> <!-- END EMBEDDED TABLE --> </td> </tr> <tr> <td width="50%" bgcolor="#cc0000" height="25"> </td> <td width="50%" bgcolor="#00cc00" height-"25"> </td> </tr> </table> Ranjan http://www.dreamlettes.comfragments of dream, weave them together Upvote 0 Downvote
nested table is the answer to achieving this. The outher table background color works as the border eg <table cellspacing="0" cellpadding="0" border="0" bgcolor="0000CC" width="400"> <tr> <td colspan="2" width="100%"> <!-- EMBEDDED TABLE BEGINS HERE > <table cellpadding="0" cellspacing="0" border="0" bgcolor="0000CC" height="15" width="100%"> <tr> <td width="33%" height="100%" bgcolor="#9400d3"> </td> <td width="34%" height="100%"> </td> <td width="33%" height="100%" bgcolor="#9400d3"> </td> </tr> </table> <!-- END EMBEDDED TABLE --> </td> </tr> <tr> <td width="50%" bgcolor="#cc0000" height="25"> </td> <td width="50%" bgcolor="#00cc00" height-"25"> </td> </tr> </table> Ranjan http://www.dreamlettes.comfragments of dream, weave them together
May 7, 2002 #8 theocraticmind Programmer Apr 19, 2002 318 CA try this for css on one tably only: <table style="border:0px;"> <tr> <td style="border: 2px solid red;">text</td> <td style="border: 2px solid red;">text</td> </tr> </table> the sested table idea is definetly not the simplest one. but the css one will not work in NS4.x. i vote for css, it downgrades to no border at all. Upvote 0 Downvote
try this for css on one tably only: <table style="border:0px;"> <tr> <td style="border: 2px solid red;">text</td> <td style="border: 2px solid red;">text</td> </tr> </table> the sested table idea is definetly not the simplest one. but the css one will not work in NS4.x. i vote for css, it downgrades to no border at all.