Frage

I am trying to give a background image to div using css. This is my css

.header {
    background: url("../images/header1.png") no-repeat scroll right 15px rgba(0, 0, 0, 0);
    height: 55px;
    padding: 5px 0 0;
    width: 100%;
}

This works fine on firefox & chrome even on IE9 & IE10 also but its not working in IE8 or older versions. I have googled & also refered this question but its not helping.

Background image not showing IE8

War es hilfreich?

Lösung 2

rgba not supported in IE7/ IE8 http://css-tricks.com/rgba-browser-support/

Andere Tipps

 .header
    {
    background: url("../images/header1.png");
    background-repeat:no-repeat;
    background-position:right 15px;
    height: 55px;
    padding: 5px 0 0;
    width: 100%;
    }
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top