Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace background in Twitter Bootstrap navbar for IE

I am trying to replace the background image for a Twitter Bootstrap navbar with my own image. It works in Chrome, Firefox, and Safari but not in Internet Explorer. What am I missing for IE? (It remains the plain black in IE)

.navbar.navbar-inverse.navbar-fixed-top .navbar-inner {
    background: url(/assets/navbar.png) repeat-x;
    box-shadow: none;
    border: none;
    -webkit-box-shadow: none;
}
like image 474
Matthew Boston Avatar asked Dec 08 '22 18:12

Matthew Boston


1 Answers

You need to add this:

filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
like image 85
Adam Taylor Avatar answered Jan 07 '23 13:01

Adam Taylor