background-image + rgba() with fallback in IE 7-8
Try this:
.element {
background: url(image.png);
background-color: #000; /* IE 8 */
background-color: rgba(0,0,0,0.5);
*background-color: #000; /* IE 7 */
}
IE8: Div hover only works when background color is set, very strange, why?
I recently ran in to this problem also. I also solved it by adding a 1 by 1 px transparent background image to the hover element. I felt like taking a shower afterwards.
IE8: Div hover only works when background color is set, very strange, why?
I recently ran in to this problem also. I also solved it by adding a 1 by 1 px transparent background image to the hover element. I felt like taking a shower afterwards.
CSS conditionally apply style based on availability of a property
You can test for most CSS properties via
document.body.style.hasOwnProperty(`prop name`)
The text of the property name changes like standard style properties, i.e.
css
-webkit-background-filter <=> webkitBackgroundFilter js
As to applying the styles, depends on whether you add/change the styles of elements or add/change the CSS rules...
Slick Slider css has `\9` in margin rule
This is a "CSS Hack" for IE, to make it render properly.
CSS: automatic fallback/workaround for devices not supporting CSS3 image-mask and/or pseudo-elements
Ok. Only webkit supports image-mask so to get a masking-effect you can either use
a) SVG images = you will need the SVG plugin to be loaded in IE
b) Cutout PNG images
I went with cutting out png shapes from a background-image
Example see here
Related Topics
How to Toggle Two CSS ':Checked' Pseudo-Classes with One Click
Internet Explorer 11 and Supported Web Fonts
Macos Chrome Horizontal Scrollbar Not Disappearing
Css/Js Bundle in Single File in MVC When Publish with Release Option
Safari Rounding Down on Subpixel Calculations
Using an Data Uri Svg as a CSS Background Image
How to Scroll with Ionic and Have Fixed Content Above
How to Make Placeholder and Label Transitions
Css: How to Get Two Floating Divs Inside Another Div
How to Set Up a Dynamic Grid Based on Flex or Grid
How to Override Bootstrap 3 Styles with External Custom CSS
How to Center Div with Col-Md-6
Understanding Nth-Child(An + B): Selector with Formula in CSS3