Solved

Background color not showing in IE8

Posted on 2013-10-27
8
424 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
[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
  • 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 53

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
Industry Leaders: 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 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
 
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

728 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