Table bg colour problem with Mozilla.

Super-Supra

(Banned)
4,111
PHP:
<table width="743" height="441" border="0" align="center">
  <tr>
    <td height="50"><div align="center"><img src="footer.jpg" width="743" height="107"></div></td>
  </tr>
  <tr>
    <td height="315" bgcolor="E9E9E9"><p align="left"><br>


That's my code for one of the tables. But for some reason in Mozilla that table doesn't have the Background colour I have set. It works in IE.
 
Well, it's hard to tell without the source code in its entirety (or at least the entire table), but you know that it's only going to apply to that single table cell, correct? Without further knowledge, I can only say that you could simply assign a class/id to that cell, and include this property in the selector:

Code:
background-color: #e9e9e9;
 
It's the # that you're missing. It should read:
PHP:
<td height="315" bgcolor="#E9E9E9"><p align="left"><br>
 
Originally posted by GilesGuthrie
It's the # that you're missing.
Heh, I actually was thinking about that, but I haven't used HTML formatting markup in so long (been doing everything via CSS) that I wasn't sure if you needed the hash mark or not, since CSS and HTML handle color values slightly differently.

And come to think of it, I should've known... IE works in quirks mode just about all the time, so it would allow a mistake like that.
 
Back