Linear-gradient not working in IE 11
try adding this line to the end of your class:
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#555555, endColorstr=#666666);
How to make background-image with linear-gradient work on IE 11?
linear-gradient()
is supported unprefixed on IE10 RTM and later, including IE11. You never need the -ms-
prefix — only the pre-release versions of IE10 required it and those versions don't even run anymore. You're just wasting space by including the prefix in your CSS.
Note that the directional syntax for linear-gradient()
is different; what was originally top
is now represented as to bottom
instead (see this blog post, this question, and the spec for details):
background-image: url(IMAGE), linear-gradient(to bottom, #ffffff, #BEE38F);
linear gradient not working with image in IE 11?
With the following, the linear gradient should work cross-browser:
background: rgb(255,255,255);
background: -moz-linear-gradient(90deg, rgba(255,255,255,0.7) 70%, rgba(255,255,255,0.7) 70%);
background: -webkit-linear-gradient(90deg, rgba(255,255,255,0.7) 70%, rgba(255,255,255,0.7) 70%);
background: linear-gradient(90deg, rgba(255,255,255,0.7) 70%, rgba(255,255,255,0.7) 70%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
Also, you should add the image.
Related Topics
Xhtml/Css: How to Make Inner Div Get 100% Width Minus Another Div Width
:Nth-Letter Pseudo-Element Is Not Working
How to Align Spans or Divs Horizontally
How to Remove All Default Webkit Search Field Styling
Override CSS for HTML5 Form Validation/Required Popup
How to Fix Unexpected Column Order in Bootstrap 4
Chrome Issue with Background-Attachment Fixed and Position Fixed Elements
CSS Grid Auto Fit with Max-Content
Align Two Inline-Blocks Left and Right on Same Line
What Is the Em Font-Size Unit? How Much Is It in Pixels
How to Use Images in CSS with Webpack
How to Ensure That Text Is Inside Rounded Div
How Is the "Greater Than" or ">" Character Used in CSS
Ml-Auto Is Not Pushing Navbar Links to the Right
Which HTML5 Reset CSS Do You Use and Why
Force Sidebar Height 100% Using CSS (With a Sticky Bottom Image)