| View previous topic :: View next topic |
| Author |
Message |
Ceyhun
Joined: 15 Aug 2005 Posts: 2
|
Posted: Mon Aug 15, 2005 12:17 pm Post subject: different background color in adjacent table cells |
|
|
Hi, I am new in HTML. And i cannot solve a problem. could anybody help me.
When I use different background color in adjacent table cells (when colors are also diff. from body background color), I see a line ;whose color is body backgroud color; that seperates the adjacent cells (table border is 0).
Example:
<body bgcolor="white">
<table>
<tr>
<td bgcolor="red">This is red</td> <td bgcolor="blue">This is blue</td>
</tr>
<tr>
<td bgcolor="yellow">This is yellow</td> <td bgcolor="green">This is green</td>
</tr>
</table>
</body>
A white line seperates all the adjacent cells. But I want to hide the table from user no matter which color I use in the cells.
Thank you, |
|
| Back to top |
|
 |
|
|
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Mon Aug 15, 2005 6:42 pm Post subject: Re: different background color in adjacent table cells |
|
|
change:
<table>
to:
<table border="0"> |
|
| Back to top |
|
 |
dafunkymunky 100+ Club

Joined: 08 Apr 2005 Posts: 180 Location: India
|
Posted: Wed Aug 17, 2005 2:04 pm Post subject: Re: different background color in adjacent table cells |
|
|
That wont do the job dude....
here is what you want..
<table cellspacing="0">
this is your edited code...
<body bgcolor="white">
<table cellspacing="0">
<tr>
<td bgcolor="red">This is red</td> <td bgcolor="blue">This is blue</td>
</tr>
<tr>
<td bgcolor="yellow">This is yellow</td> <td bgcolor="green">This is green</td>
</tr>
</table>
</body> |
|
| Back to top |
|
 |
Phate 500+ Club

Joined: 21 Nov 2004 Posts: 818 Location: 127.0.0.1
|
Posted: Wed Aug 17, 2005 7:11 pm Post subject: Re: different background color in adjacent table cells |
|
|
| oh, i missunderstood his question |
|
| Back to top |
|
 |
dafunkymunky 100+ Club

Joined: 08 Apr 2005 Posts: 180 Location: India
|
Posted: Thu Aug 18, 2005 9:50 am Post subject: Re: different background color in adjacent table cells |
|
|
| and ceyhun dont forget to tick the solved button once you have got the solution...... |
|
| Back to top |
|
 |
|