Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

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
Avatar of nedlogan
nedlogan
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of tobyhutton1234
tobyhutton1234

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

Change background-color:#ffffff; to background:#ffffff;
Avatar of rgb192

ASKER

i changed to background:#ffffff;
and changed grey to gray
and deleted vertical allignment and it still doesnt work for me
ASKER CERTIFIED SOLUTION
Avatar of nedlogan
nedlogan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of rgb192

ASKER

thanks