|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hai
I wrote code for my web site with following code segment. <table border=0 cellpadding=4 cellspacing=0 width="100%" bgcolor="#008000"> <tr> <td bgcolor="#008000"> <font size=+2 color="#ffffff" face=Arial> <center> Computers! </center> </td> </font> </tr> </table> my aim is to have green background with white letters of "Computers" . It works well with Internet Explorer but it is not working , that not putting background with my Netscape Communicator 4.61. Anyone please help me in solving this problem. vijay |
|
#2
|
|||
|
|||
|
you open the font tag inside the TD tag, but close the font tag outside of the TD tag. This is a big no-no
... some browsers reawlly dont like it. so move the closing font tag inside the TD tag. also if you set the TABLE BGCOLOR to 008000, there's no reason to do it to the TD tag as well. |
|
#3
|
|||
|
|||
|
Try putting the bgcolor in the <tr> tag. IE and Netscape vary allot with tables and table usage, so you'll just have to play around.
|
|
#4
|
|||
|
|||
|
I also would suggest you to use the <div align="center"> tags instead of <center> since W3C are disposing the <center> tags. You can do more style effects with div tags anyway.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Netscape table bgcolor? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|