Solved

Background color not showing in IE8

Posted on 2013-10-27
8
422 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
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!
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 position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

789 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