Solved

td background works in ff3 & ie8 but not ie7

Posted on 2011-03-03
6
385 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Css issue on scroll 1 38
How can I make a css class read only with jquery? 2 37
CSS Scroll Issue 3 87
WordPress Themes 10 34
CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now