Solved

td background works in ff3 & ie8 but not ie7

Posted on 2011-03-03
6
401 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
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

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!
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
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…

809 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