|
|
|
|
![]() ![]() |
Dec 29 2005, 11:21 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 407 Joined: 13-December 04 Member No.: 2,696 |
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: CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta 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> |
|
|
|
Dec 29 2005, 11:23 PM
Post
#2
|
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,161 Joined: 9-May 05 From: Brisbane, QLD Member No.: 6,818 |
You'll need to set cellpadding and cellspacing to 0.
|
|
|
|
Jan 15 2006, 12:27 AM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 282 Joined: 1-September 05 From: Wanatos Member No.: 11,382 |
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:
HTML <table cellpadding="0" cellspacing="0">...</table> Cheers... |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 13th October 2008 - 12:40 AM |