Reasons why this question is not a duplicate: Despite reading previous solutions such as IE 8: background-size fix and How do I make background-size work in IE?, they did not work for my specific case. This could be due to the fact that I am using bootstrap. My goal is to create a responsive and transparent background for a div.
Currently, I am utilizing bootstrap 3.3.6 and I am encountering issues with properly displaying the following code in IE8:
<head>
<title>Bootstrap Example</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="libs/bootstrap-3.3.6-dist/css/bootstrap.min.css">
<script src="libs/jquery-1.11.2.min.js"></script>
<script src="libs/bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="libs/myCSS/font-face.css">
<script src="libs/respond.js"></script>
<script src="libs/html5shiv.js.js"></script>
...
</head>
<body>
...
<div class="col-md-6">
<div class="row">
<div class="col-md-6 text-center center">
<div class="row">
<div class="left-finger-picker img-responsive"> //this is my background image
...
</body>
The CSS for "left-finger-picker" is as follows:
.left-finger-picker {
width: 200px;
height: 210px;
position : relative;
background-size: cover;
background-image : url("../myPics/leftHand.png");
background-repeat: no-repeat;
background-size: contain;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../myPics/leftHand.png', sizingMethod='scale');
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='../myPics/leftHand.png', sizingMethod='scale')";
}
The CSS for "right-finger-picker" is similar to "left-finger-picker" except for the image source.
Desired output in Chrome, Firefox, and IE11:
https://i.sstatic.net/7LtCV.png
Current output in IE8:
https://i.sstatic.net/423CW.png
Another issue I am facing is that the background of the div appears white instead of transparent, even though the original images are transparent in PNG format.