Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table background color problem

Status
Not open for further replies.

jskum

Programmer
Sep 26, 2000
4
US
hi i have a table which has two tables in it.i gave different bgcolors for all the three tables but i dont want the bgcolor of the main table to be shown around the two tables.what should i do.
my code is
<html><table bgcolor=red>
<tr>
<td><table bgcolor=green>
<tr><td>table1</td></tr></table></td>
<td><table bgcolor=yellow><tr><td>table2</td></tr></table></td></tr>
</table>
</html>
i dont want red to be shown around them.
but bgcolor of all tables r different.thats my problem.
and it should work in both ie and netscape


thanks

[sig][/sig]
 
Why don't you remove bgcolor=&quot;red&quot; from the outer table? If you don't want it to show up, why do you need it?

Regards, [sig]<p>Russ<br><a href=mailto:bobbitts@hotmail.com>bobbitts@hotmail.com</a><br><a href= is in</a><br>[/sig]
 
I agree with rbobbitt, you don't need to have the background color around the originating table. If you remove that attribute, you will have a blank table that will by default show the page background. [sig][/sig]
 
hi rbobbitt and webgodiva,
thanks for ur response.this is not a standalone appliction.i am developing html nested tables dynamically.
i get this in xml form with back ground colors automatically.
i have to parse xml then do this table stuff dynamically.i cant remove bgcolor from any table .
hope u understood
thanks once again
jskum [sig][/sig]
 
<table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;> [sig][/sig]
 
thanks rycamor
satyendra [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top