Solved

td background works in ff3 & ie8 but not ie7

Posted on 2011-03-03
6
424 Views
Last Modified: 2012-06-27


<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
Comment
Question by:rgb192
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Expert Comment

by:nedlogan
ID: 35030544
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
 

Expert Comment

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

Change background-color:#ffffff; to background:#ffffff;
0
 

Author Comment

by:rgb192
ID: 35031755
i changed to background:#ffffff;
and changed grey to gray
and deleted vertical allignment and it still doesnt work for me
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Accepted Solution

by:
nedlogan earned 500 total points
ID: 35033228
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
 
LVL 9

Expert Comment

by:jkofte
ID: 35034182
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
 

Author Closing Comment

by:rgb192
ID: 35182365
thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question