Solved

Background color not showing in IE8

Posted on 2013-10-27
8
419 Views
Last Modified: 2013-10-27
Hello CSS Experts.

I have  a div that has a white background color.  It's working fine -- except it is showing up on IE8 as transparent.  

In my next comment I will include the link  to the development site.

The div is named div.inner clearfix

It is controlled by this css in custom.css

#main > div.inner {
    background: none repeat scroll 0 0 #ffffff;
    border: 10px solid #ffffff;
    border-radius: 10px 10px 20px 20px;
}

Looking forward to fixing this IE8 compatibility issue!

Thanks!

Rowby
0
Comment
Question by:Rowby Goren
  • 4
  • 3
8 Comments
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39604051
Here's the link to the development site:

Click for development site

Thanks!
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39604060
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 500 total points
ID: 39604068
Add an !important to the color. Hard to tell where it is being overridden since you have !important all over the place.

p.s. do you really need 22 css files?
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39604091
HI

#main > div.inner {
    background: none repeat scroll 0 0 #FFffff !important;
    border: 10px solid #FFffff !important;
    border-radius: 10px 10px 20px 20px;
}

fixed it.  Thanks.

One more question.  I am seeing another IE 8 compatibility issue.  There is a banner at the top named hason-header.png.  It is also not showing in my copy of IE8.  It's "invisible"

The image is embedded in the html and I don't see it in any css specifically controlling it...
<div class="inner clearfix">
<img width="788px" height="173px" alt="" src="/templates/hasonrevised/images/hason-header.png"></div>

Open in new window


Your thoughts?

Thanks

Rowby
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 58

Assisted Solution

by:Gary
Gary earned 500 total points
ID: 39604102
width/height doesn't use px (when used inline like that) - just the put the number in and nothing else
0
 
LVL 9

Author Comment

by:Rowby Goren
ID: 39604118
HI

I replaced it with the following html

<img width="788" height="173" alt="" src="/templates/hasonrevised/images/hason-header.png">

Open in new window


But it is still not showing in IE8.   Should I just remove the height and width attributes altogether?

Or should I do the header image via css for better compatibility???

Thanks

Rowby
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39604131
Take all this
<div id="banner">
    <div class="inner clearfix">
      <div class="logobloc" id="bannerlogo">
        <div class="inner clearfix">
                      <img width="788" height="173" alt="" src="/templates/hasonrevised/images/hason-header.png">
                            </div>
      </div>
    </div>
  </div>

Open in new window


and replace with
<img width="788" height="173" alt="" src="/templates/hasonrevised/images/hason-header.png">

Open in new window

0
 
LVL 9

Author Closing Comment

by:Rowby Goren
ID: 39604156
p.s. do you really need 22 css files?   Hee hee!   Obviously not, but for now I'm "stuck" with them..  :)

Thanks again.  BTW I have another css question here if you have time to dig into  it...

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_28278460.html
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
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…

747 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

13 Experts available now in Live!

Get 1:1 Help Now