kvarnerexpress 0 Report post Posted December 29, 2005 I can't believe I can't get this one. I have a table that I am dynamically coloring using tr row id's using javascript. However in this example I have just used plain HTML. I would like the rows that are blue to stay blue and not have any white spaces in between the rows & columns. Any ideas?Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://forums.xisto.com/no_longer_exists/ http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Alternate colored tables</title></head><body><table width="100%" border="0" hspace="0" vspace="0"> <tr bgcolor="#0000FF" id="row1"> <th scope="col"> </th> <th scope="col"> </th> <th scope="col"> </th> </tr> <tr bgcolor="#0000FF" id="row2"> <th scope="row"> </th> <td> </td> <td> </td> </tr> <tr> <th scope="row" id="row3"> </th> <td> </td> <td> </td> </tr> <tr bgcolor="#0000FF" id="row4"> <th scope="row"> </th> <td> </td> <td> </td> </tr> <tr bgcolor="#0000FF" id="row5"> <th scope="row"> </th> <td> </td> <td> </td> </tr> <tr> <th scope="row"> </th> <td> </td> <td> </td> </tr> <tr bgcolor="#0000FF" id="row6"> <th scope="row"> </th> <td> </td> <td> </td> </tr> <tr bgcolor="#0000FF" id="row7"> <th scope="row"> </th> <td> </td> <td> </td> </tr></table></body></html> Share this post Link to post Share on other sites
Tyssen 0 Report post Posted December 29, 2005 You'll need to set cellpadding and cellspacing to 0. Share this post Link to post Share on other sites
Lozbo 0 Report post Posted January 15, 2006 I know this is pretty obvious but hope you find it helpful, Tyssen is (always i think hehe) right... Those are attributes for the table tag, so it'll end up like this: <table cellpadding="0" cellspacing="0">...</table> Cheers... Share this post Link to post Share on other sites