• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem setting bgcolor on a cell

 
Graham Jessiman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code snippet shows a font background color set, along with trying to set the cell background to the same color.

<td align="center" bgColor="#639400">
<span class="eocfield">
<font style="background-color:#639400;">
Open </font>
 </span>
</td>

Attached is what is displayed.... is there a priority hierarchy to the settings?
Capture.JPG
[Thumbnail for Capture.JPG]
Result of CSS code
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both bgcolor and the font tag are long-since deprecated; why are they being used? Is this some legacy code from a decade or so ago?

If this is new code, it should be using CSS, not deprecated tags and attributes.

Setting background-color on the <td> element will surely have the effect that you seek.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic