• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 440
  • Last Modified:

td background works in ff3 & ie8 but not ie7



<td style="width:220px; background-color:#ffffff;
  border-color: grey;
border-style: solid;
border-width: 5px;
text-align:center;"
VALIGN="top">


this works in ff3 & ie8 but not ie7

on ie7 background is not displayed
0
rgb192
Asked:
rgb192
1 Solution
 
nedloganCommented:
Hi,
The following works in my version of IE7

<td style="width:220px; background-color:#ffcc00;
  border-color: gray;
border-style: solid;
border-width: 5px;
text-align:center; vertical-align:top;">Content</td>

Vertical alignment defined in CSS, better still make this a class.

Regards.
0
 
tobyhutton1234Commented:
You the part <td style="width:220px; background-color:#ffffff;

Change background-color:#ffffff; to background:#ffffff;
0
 
rgb192Author Commented:
i changed to background:#ffffff;
and changed grey to gray
and deleted vertical allignment and it still doesnt work for me
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
nedloganCommented:
Hi,
Do you have content in the cell, also it may sound silly but #FFFFFF is white can you see that on your background?
When I tested in other browsers the table cell shows up without content in Google Chrome but not in IE7. It will only show up in IE7 if the cell has content.
Try the copying the following code into an empty HTML page and see if it works for you:
<table>
<tr>
    <td style="width:220px; background:#ffcc00;
    border-color: gray;
    border-style: solid;
    border-width: 5px;
    text-align:center; vertical-align:top;">Hello</td>
</tr>
</table>

Regards.
0
 
jkofteCommented:
hi you need to have content in background for IE to render it. just place a white space (&nbsp;) inside and it should be done.
0
 
rgb192Author Commented:
thanks
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now