Solved

Background color not showing in IE8

Posted on 2013-10-27
8
420 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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).

786 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