{"id":24272,"date":"2019-03-22T12:15:53","date_gmt":"2019-03-22T10:15:53","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=24272"},"modified":"2019-03-19T11:30:19","modified_gmt":"2019-03-19T09:30:19","slug":"fixing-browser-compatibility-issues-css-opacity","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/","title":{"rendered":"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA"},"content":{"rendered":"\n<p>Very often web designers encounter the need to spice of their websites by playing with CSS opacity for backgrounds, texts and images to build modern subdued styling effects. Opacity is also extensively utilised in creating a subtle shadow effect on text and boxes to make a webpage more attractive for users. This can be achieved either by using the CSS opacity property or by using RGBA colour, each way has its own merit and shortcomings. We will explore some of their most popular practical uses and cross browser compatibility solution to make them work on legacy browsers like IE8 and below versions that offer either partial or no browser support altogether.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS Opacity Property<\/h2>\n\n\n\n<p>The CSS opacity property is used to set the opacity value for an element. It defines the level of transparency by the use of a number in the range 0 to 1, where 1 corresponds to 100% opaque (or 0% transparent) and 0 corresponds to 0% opaque (or 100% transparent). However, CSS opacity property will add the specified transparency level to the entire element including all its child elements as well. For eg- if opacity property is defined for a div element, then all the elements inside the div which could be some text, image or other divs will also gain the same opacity from the parent div even though opacity isn\u2019t explicitly inherited.<\/p>\n\n\n\n<p>Before we deep dive in this article, you may have a look at the sample code I used to represent CSS Opacity for background on one of our LambdaTest Experiments, here you can visualize the output with respect to the difference in CSS opacity value.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax For Using CSS Opacity<\/h3>\n\n\n\n<p><b>opacity: number|initial|inherit;<\/b><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Number : specifies the alpha channel value- the opacity\/transparency level. Ranges from 0(zero opacity) to 1(full opacity)<\/li><li>Initial : Sets to default value which is 1 \u2013 full opacity<\/li><li>Inherit : inherit value from parent element<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Sample Code To Represent Cross Browser Compatibility Issue In CSS Opacity For Background Color<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted brush:xml\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n    &lt;style&gt;\n        h1 {\n            text-align: center;\n        }\n        div {\n            width: 50%;\n            margin: 0 auto;\n            background-color: #f1c40f;\n            padding: 10px;\n        }\n        .opacity25 {\n            opacity: 0.25;\n        }\n        .opacity50 {\n            opacity: 0.5;\n        }\n        .opacity75 {\n            opacity: 0.75;\n        }\n    &lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;CSS OPACITY PROPERTY&lt;\/h1&gt;\n    &lt;div class=\"opacity25\"&gt;\n        &lt;p&gt;opacity 25%&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=\"opacity50\"&gt;\n        &lt;p&gt;opacity 50%&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=\"opacity75\"&gt;\n        &lt;p&gt;opacity 75%&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div&gt;\n        &lt;p&gt;opacity 100%&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property-1-1024x469.png\" alt=\"CSS Opacity\" class=\"wp-image-24274\" width=\"768\" height=\"352\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property-1-1024x469.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property-1-300x137.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property-1-768x352.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property-1.png 1067w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p><b>Note:<\/b> If CSS opacity number is set to a value that is outside the defined range 0 to 1, it is still a valid syntax. The value is rounded to the nearest limit point. For instance, if CSS opacity is set to -0.5 it will be rounded to 0. Similarly, if CSS opacity is set to 1.25, it will be rounded to 1.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:perl\">&lt;style&gt;\n.opacity-25{\n opacity: -0.25;\n }\n.opacity125{\n opacity: 1.25;\n }\n&lt;\/style&gt;<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"512\" height=\"339\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property1.png\" alt=\"CSS Opacity\" class=\"wp-image-24275\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property1.png 512w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/css-opacity-property1-300x199.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Browser Support For CSS Opacity Property<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/browser-support-for-css-property-1-1024x281.png\" alt=\"CSS Opacity\" class=\"wp-image-24276\" width=\"768\" height=\"211\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/browser-support-for-css-property-1-1024x281.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/browser-support-for-css-property-1-300x82.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/browser-support-for-css-property-1-768x211.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/browser-support-for-css-property-1.png 1583w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>CSS3 provides a short single line style rule to add CSS opacity for background color, which is supported by all modern browsers. However, earlier due to cross browser compatibility and feature support issues, making CSS opacity work was quite cumbersome, and required extensive browser specific rules and fallbacks shown below.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-35-1-1024x565.png\" alt=\"CSS Opacity\" class=\"wp-image-24277\" width=\"768\" height=\"424\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-35-1-1024x565.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-35-1-300x166.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-35-1-768x424.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-35-1.png 1600w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>To access my webpage on legacy browsers I have performed <a href=\"https:\/\/www.lambdatest.com\/feature\" target=\"_blank\" rel=\"noopener noreferrer\">browser compatibility testing<\/a> using LambdaTest to ensure that my code renders as intended. LambdaTest is a <a href=\"https:\/\/www.lambdatest.com\/\" rel=\"noopener\">cross browser testing tool<\/a> offering more than 2000 real browsers and browser versions running on numerous operating systems. For this experiment of CSS opacity for background color, I used live-interactive feature of LambdaTest called Real Time Testing. Real time testing helps you to interact with your webapp across thousands of browser and browser versions by running a virtual machine, hosted on LambdaTest cloud servers.<\/p>\n\n\n\n<p>I also made use of Lambda Tunnel, which allowed me to <a href=\"https:\/\/www.lambdatest.com\/local-page-testing\" target=\"_blank\" rel=\"noopener noreferrer\">test my locally hosted webpages<\/a> on LambdaTest platform by establishing an SSH(Secure Shell) connection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Cross Browser Compatible Solution For CSS Opacity<\/h3>\n\n\n\n<p>If you look at the code below, you will get an idea on how cross browser compatibility for CSS Opacity was utilized in earlier days.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:perl\">div{\n\/* IE 8 *\/ \n-ms-filter: \"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)\";\n \n \/* IE 5, IE6 and IE7 *\/ \nfilter: alpha(opacity=50); \n \n\/* Netscape *\/ \n-moz-opacity: 0.5;\n \n \/* Safari 1.x Pre webkit *\/ \n-khtml-opacity: 0.5; \n \n\/* Modern browsers *\/\nopacity: 0.5; \n}<\/pre>\n\n\n\n<p>But it is quite evident that this is not a practical solution for modern use. Today, there is a short modern hack for making CSS opacity work for all browsers including legacy versions of Internet Explorer \u2013 IE6-IE8.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:perl\">div {\n  opacity: 1;\n  filter: alpha(opacity=100); \/* IE8 and lower *\/\n  zoom: 1; \/* Triggers \"hasLayout\" in IE 7 and lower *\/\n}<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-36-1024x587.png\" alt=\"CSS Opacity\" class=\"wp-image-24278\" width=\"768\" height=\"440\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-36-1024x587.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-36-300x172.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-36-768x440.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-36.png 1562w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>The code mentioned above will not work in IE, specially in IE8 if \u2018zoom :1\u2019 is not specified. IE doesn\u2019t apply several CSS style rules to elements that don\u2019t have layout. \u2018zoom:1\u2019 or \u2018width :100%\u2019 will trigger \u2013 \u201chas layout\u201d for the element and enable CSS opacity for background color or images to be applied.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"600\" height=\"140\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/JPG.png\" alt=\"CSS Opacity\" class=\"wp-image-24279\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/JPG.png 600w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/JPG-300x70.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Opacity Polyfill For Internet Explorer (IE6 \u2013 IE8)<\/h3>\n\n\n\n<p>The final solution in our quiver for fixing cross browser compatibility issue with CSS opacity for background and images, is a small <a href=\"https:\/\/github.com\/bladeSk\/internet-explorer-opacity-polyfill\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">polyfill<\/a> which adds support to older IE versions IE6, IE7 and IE8. Using this polyfill eliminates need to worry about vendor prefixes or fallbacks as far as IE legacy browsers are concerned. However, note that this polyfill will not work for inline CSS style rules.<\/p>\n\n\n\n<p><b>USAGE \u2013 <\/b><br>Use IE conditional statement to load polyfill JS file in Internet Explorer IE8, IE7 and IE6.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:perl\">&lt;!--[if lte IE 8]&gt; &lt;script src=\"jquery.ie-opacity-polyfill.js\"&gt;&lt;\/script&gt;  &lt;![endif]--&gt;<\/pre>\n\n\n\n<p>This will not be interpreted by any modern browsers and will be simply discarded as a comment. If you want to learn more about IE conditional statements and CSS feature queries, check out my article <a href=\"https:\/\/www.lambdatest.com\/blog\/css-with-feature-detection-for-cross-browser-compatibility\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:xml\">&lt;!doctype html&gt;\n&lt;html&gt;\n \n&lt;head&gt;\n    &lt;meta charset=\"utf-8\"&gt;\n    &lt;title&gt;CSS Opacity Polyfill for IE&lt;\/title&gt;\n    &lt;!--[if lte IE 8]&gt;&lt;script src=\"jquery.ie-opacity-polyfill.js\"&gt;&lt;\/script&gt;&lt;![endif]--&gt;\n    &lt;style type=\"text\/css\"&gt;\n        .square {\n            float: left;\n            width: 90px;\n            height: 90px;\n            padding: 5px;\n            margin: 25px;\n            background: #000;\n            color: #fff;\n        }\n        .opacity75 {\n            opacity: .75;\n        }\n        .opacity50 {\n            opacity: .5;\n        }\n        .opacity25 {\n            opacity: .25;\n        }\n    &lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;div class=\"square\"&gt;Opacity: 100%&lt;\/div&gt;\n    &lt;div class=\"square opacity75\"&gt;Opacity: 75%&lt;\/div&gt;\n    &lt;div class=\"square opacity50\"&gt;Opacity: 50%&lt;\/div&gt;\n    &lt;div class=\"square opacity25\"&gt;Opacity: 25%&lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n\n\n\n<p>CSS offers another alternative to CSS opacity to achieve a similar kind of opacity or transparency effect by the use of RGBA color. This is quite popular for creating overlay backgrounds, gradient backgrounds, text and box shadow, gradient text etc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">RGBA Color<\/h2>\n\n\n\n<p>One fundamental problem with CSS Opacity property is that if specified for a parent element, it affects all children element as well. If you set background of a div element to transparent, then all children elements (like text and images) of the parent div will also be set to transparent. This is where RGBA color comes to our rescue. The RGBA color value is similar to RGB but with an alpha channel which specifies opacity or conversely transparency value for an element but leaves its children untouched.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Syntax Of Using RGBA For Opacity<\/h3>\n\n\n\n<p>rgba(R,B,G,alpha-channel)<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>R\/B\/G: Specifies the value or intensity of Red, Blue and green colors respectively either by an integer value ranging from 0 to 255 or % value ranging from 0-100%.<\/li><li>Alpha-channel : species the opacity value as a range between 0 and 1. 0 represents 0% opacity(or 100% transparency) and 1 represents 100% opacity(or 0% transparency).<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Sample Code To Represent Cross Browser Compatibility Issue In RGBA Opacity For Background Color<\/h3>\n\n\n\n<p>You can refer to our LambdaTest Experiment on <a href=\"https:\/\/www.lambdatest.com\/experiment\/rgba-error.html\" target=\"_blank\" rel=\"noopener noreferrer\">RGBA Opacity background color<\/a> property. Below is the code sample used for the cross browser compatibility experiment on RGBA Opacity.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:xml\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n    &lt;style&gt;\n        h1 {\n            text-align: center;\n        }\n        div {\n            width: 50%;\n            margin: 0 auto;\n            padding: 10px;\n        }\n        .opacity0{\n            background: rgba(46, 204, 113,0);\n        }\n        .opacity25{\n            background: rgba(46, 204, 113,0.25);\n        }\n        .opacity50{\n            background: rgba(46, 204, 113,0.5);\n        }\n        .opacity75{\n            background: rgba(46, 204, 113,0.75);\n        }\n        .opacity100{\n            background: rgba(46, 204, 113,1.0);\n        }\n        \n    &lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;RGBA COLOR&lt;\/h1&gt;\n    &lt;div class=\"opacity0\"&gt;\n        &lt;p&gt;opacity 0%&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=\"opacity25\"&gt;\n        &lt;p&gt;opacity 25%&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=\"opacity50\"&gt;\n        &lt;p&gt;opacity 50%&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=\"opacity75\"&gt;\n        &lt;p&gt;opacity 75%&lt;\/p&gt;\n    &lt;\/div&gt;\n    &lt;div class=\"opacity100\"&gt;\n        &lt;p&gt;opacity 75%&lt;\/p&gt;\n    &lt;\/div&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/RGBA-color.png\" alt=\"CSS Opacity\" class=\"wp-image-24280\" width=\"752\" height=\"405\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/RGBA-color.png 1003w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/RGBA-color-300x162.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/RGBA-color-768x413.png 768w\" sizes=\"(max-width: 752px) 100vw, 752px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Browser Support Of RGBA Color Type<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-6-1024x322.png\" alt=\"CSS Opacity\" class=\"wp-image-24281\" width=\"768\" height=\"242\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-6-1024x322.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-6-300x94.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-6-768x242.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/image2-6.png 1580w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<p>Although RGBA color enjoys excellent support across all major browsers and is largely cross browser compatible. However noticeable exceptions are IE6 \u2013 IE8 which do not support this feature. One solution is to use a fallback solid color(100% opacity) without any alpha value, ie without any opacity\/transparency value. Browsers which do not comprehend RGBA value will render the fallback color. However we will explore ways to make RGBA cross browser compatible and work in IE6-IE8 versions as well. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-37-1-1024x546.png\" alt=\"CSS Opacity\" class=\"wp-image-24282\" width=\"768\" height=\"410\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-37-1-1024x546.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-37-1-300x160.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-37-1-768x410.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-37-1-620x330.png 620w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-37-1.png 1576w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Cross Browser Compatible Solution Of Using RGBA For Opacity<\/h3>\n\n\n\n<p>Microsoft Internet explorer (IE6-IE8) had its own own gradient and filter properties which is slightly different to RGBA. It rather uses 8-character HEX value called \u2018ARGB\u2019 (alpha RGB) to define colors with a transparency value. Unlike traditional RGBA which is 4 character long, R,G,B values ranges from 0-255 and alpha channel value ranging from 0-1, #ARGB has a hexadecimal format with first 2 \u2013 #AARRGGBB. First 2 characters specify the alpha value and control the opacity(00-FF) while last 6 characters specify the red, blue and green color intensity respectively.<\/p>\n\n\n\n<p>Here\u2019s a table showing alpha value in % and its corresponding alpha value in #ARGB format \u2013 If you have RGBA value \u2013 rgba(F,0,0,0.5), then the corresponding value in #ARGB format will be #80FF0000 where first 2 characters \u201880\u2019 represent 0.5 or 50% opacity.<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>\n<p>100%<\/p>\n<\/td><td>\n<p>FF<\/p>\n<\/td><\/tr><tr><td>\n<p>95%<\/p>\n<\/td><td>\n<p>F2<\/p>\n<\/td><\/tr><tr><td>\n<p>90%<\/p>\n<\/td><td>\n<p>E6<\/p>\n<\/td><\/tr><tr><td>\n<p>85%<\/p>\n<\/td><td>\n<p>D9<\/p>\n<\/td><\/tr><tr><td>\n<p>80%<\/p>\n<\/td><td>\n<p>CC<\/p>\n<\/td><\/tr><tr><td>\n<p>75%<\/p>\n<\/td><td>\n<p>BF<\/p>\n<\/td><\/tr><tr><td>\n<p>70%<\/p>\n<\/td><td>\n<p>B3<\/p>\n<\/td><\/tr><tr><td>\n<p>65%<\/p>\n<\/td><td>\n<p>A6<\/p>\n<\/td><\/tr><tr><td>\n<p>60%<\/p>\n<\/td><td>\n<p>99<\/p>\n<\/td><\/tr><tr><td>\n<p>55%<\/p>\n<\/td><td>\n<p>8C<\/p>\n<\/td><\/tr><tr><td>\n<p>50%<\/p>\n<\/td><td>\n<p>80<\/p>\n<\/td><\/tr><tr><td>\n<p>45%<\/p>\n<\/td><td>\n<p>73%<\/p>\n<\/td><\/tr><tr><td>\n<p>40%<\/p>\n<\/td><td>\n<p>66<\/p>\n<\/td><\/tr><tr><td>\n<p>35%<\/p>\n<\/td><td>\n<p>59<\/p>\n<\/td><\/tr><tr><td>\n<p>30%<\/p>\n<\/td><td>\n<p>4D<\/p>\n<\/td><\/tr><tr><td>\n<p>25%<\/p>\n<\/td><td>\n<p>40<\/p>\n<\/td><\/tr><tr><td>\n<p>20%<\/p>\n<\/td><td>\n<p>33<\/p>\n<\/td><\/tr><tr><td>\n<p>15%<\/p>\n<\/td><td>\n<p>26<\/p>\n<\/td><\/tr><tr><td>\n<p>10%<\/p>\n<\/td><td>\n<p>1A<\/p>\n<\/td><\/tr><tr><td>\n<p>5%<\/p>\n<\/td><td>\n<p>0D<\/p>\n<\/td><\/tr><tr><td>\n<p>0%<\/p>\n<\/td><td>\n<p>00<\/p>\n<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>Add the following code snippets to your code to enable support for RGBA in IE6, IE7 and IE8<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><b>For IE6-IE7<\/b><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted brush:perl\">filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#6523BE38', EndColorStr='#6523BE38');<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><b>For IE8<\/b><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted brush:perl\">-ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#6523BE38', EndColorStr='#6523BE38')\";<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li><b>\u2018hasLayout\u2019 for IE<\/b><\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted brush:perl\">Add zoom:1; to trigger \u2018hasLayout\u2019<\/pre>\n\n\n\n<p>Now after combining all the fallbacks, our final code shapes up to be \u2013<\/p>\n\n\n\n<pre class=\"wp-block-preformatted brush:xml\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n \n&lt;head&gt;\n   &lt;style&gt;\n       h1 {\n           text-align: center;\n       }\n \n       div {\n           width: 50%;\n           margin: 0 auto;\n           padding: 10px;\n       }\n \n       .opacity25 {\n           \/* default fallback for unsupported browsers*\/\n           background: transparent;\n           \/*or some solid color background : red; *\/\n           \/* for modern browsers  *\/\n           background: rgba(230, 126, 34,0.25);\n           \/* For IE8 *\/\n           -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#40e67e22', EndColorStr='#40e67e22')\";\n           \/* For IE6,IE7 *\/\n           filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#40e67e22', EndColorStr='#40e67e22');\n           \/* Trigger hasLayout for IE *\/\n           zoom: 1 !important;\n       }\n       .opacity50 {\n           background: transparent;\n           background: rgba(230, 126, 34,0.5);\n           -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#80e67e22', EndColorStr='#80e67e22')\";\n           filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#80e67e22', EndColorStr='#80e67e22');\n           zoom: 1 !important;\n       }\n       .opacity75 {\n           background: transparent;\n           background: rgba(230, 126, 34,.75);\n           -ms-filter: \"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#bfe67e22', EndColorStr='#bfe67e22')\";\n           filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#bfe67e22', EndColorStr='#bfe67e22');\n           zoom: 1 !important;\n       }\n   &lt;\/style&gt;\n&lt;\/head&gt;\n \n&lt;body&gt;\n   &lt;h1&gt;RGBA COLOR SUPPORT FOR IE&lt;\/h1&gt;\n   &lt;div class=\"opacity25\"&gt;\n       &lt;p&gt;opacity 25%&lt;\/p&gt;\n   &lt;\/div&gt;\n   &lt;div class=\"opacity50\"&gt;\n       &lt;p&gt;opacity 50%&lt;\/p&gt;\n   &lt;\/div&gt;\n   &lt;div class=\"opacity75\"&gt;\n       &lt;p&gt;opacity 75%&lt;\/p&gt;\n   &lt;\/div&gt;\n&lt;\/body&gt;\n \n&lt;\/html&gt;<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-38-1024x542.png\" alt=\"CSS Opacity\" class=\"wp-image-24283\" width=\"768\" height=\"407\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-38-1024x542.png 1024w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-38-300x160.png 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-38-768x406.png 768w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-38-620x330.png 620w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/pasted-image-0-38.png 1593w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>CSS opacity and RGBA are one of the most widely used properties used extensively across websites for fading animations and transitions to build modern and attractive UI designs. Even though opacity property and RGBA color value enjoys excellent support across all major browsers and versions, there are still small compatibility issues when it comes to Internet Explorer 8 and below. But now you are armed with this flawless cross browser compatible solution for opacity to ensure that your designs work seamlessly across all browsers.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber.jpg\" alt=\"CSS Opacity\" class=\"wp-image-24253\" width=\"698\" height=\"135\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber.jpg 930w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber-300x58.jpg 300w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2019\/03\/Adword-Cyber-768x149.jpg 768w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/figure><\/div>\n\n\n\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>\n<p>Published on Web Code Geeks with permission by Nikhil Tyagi, partner at our <a href=\"\/\/www.webcodegeeks.com\/join-us\/wcg\/\" target=\"_blank\" rel=\"noopener noreferrer\">WCG program<\/a>. See the original article here: <a href=\"https:\/\/www.lambdatest.com\/blog\/fixing-browser-compatibility-issues-with-css-opacity-rgba\/\" target=\"_blank\" rel=\"noopener noreferrer\">Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA<\/a><\/p>\n<p>Opinions expressed by Web Code Geeks contributors are their own.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Very often web designers encounter the need to spice of their websites by playing with CSS opacity for backgrounds, texts and images to build modern subdued styling effects. Opacity is also extensively utilised in creating a subtle shadow effect on text and boxes to make a webpage more attractive for users. This can be achieved &hellip;<\/p>\n","protected":false},"author":12181,"featured_media":917,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-24272","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn about CSS Opacity? Check our article explaining how you can fix Browser Compatibility Issues with CSS Opacity\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn about CSS Opacity? Check our article explaining how you can fix Browser Compatibility Issues with CSS Opacity\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-22T10:15:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nikhil Tyagi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nikhil Tyagi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/\"},\"author\":{\"name\":\"Nikhil Tyagi\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9\"},\"headline\":\"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA\",\"datePublished\":\"2019-03-22T10:15:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/\"},\"wordCount\":1434,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/\",\"name\":\"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"datePublished\":\"2019-03-22T10:15:53+00:00\",\"description\":\"Interested to learn about CSS Opacity? Check our article explaining how you can fix Browser Compatibility Issues with CSS Opacity\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/css\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9\",\"name\":\"Nikhil Tyagi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g\",\"caption\":\"Nikhil Tyagi\"},\"description\":\"Experienced Frontend Developer and UX Designer who specializes in HTML5, CSS3 SASS\/SCSS, Bootstrap 4, Materialize, Semantic UI frameworks, Javascript, Jquery, Ajax, React JS and APIs.\",\"sameAs\":[\"https:\/\/www.lambdatest.com\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/nikhil-tyagi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA - Web Code Geeks - 2026","description":"Interested to learn about CSS Opacity? Check our article explaining how you can fix Browser Compatibility Issues with CSS Opacity","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/","og_locale":"en_US","og_type":"article","og_title":"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA - Web Code Geeks - 2026","og_description":"Interested to learn about CSS Opacity? Check our article explaining how you can fix Browser Compatibility Issues with CSS Opacity","og_url":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2019-03-22T10:15:53+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","type":"image\/jpeg"}],"author":"Nikhil Tyagi","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Nikhil Tyagi","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/"},"author":{"name":"Nikhil Tyagi","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9"},"headline":"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA","datePublished":"2019-03-22T10:15:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/"},"wordCount":1434,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/","url":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/","name":"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","datePublished":"2019-03-22T10:15:53+00:00","description":"Interested to learn about CSS Opacity? Check our article explaining how you can fix Browser Compatibility Issues with CSS Opacity","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/css3-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/css\/fixing-browser-compatibility-issues-css-opacity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/www.webcodegeeks.com\/category\/css\/"},{"@type":"ListItem","position":3,"name":"Fixing Browser Compatibility Issues With CSS Opacity &amp; RGBA"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/8525777a25c963dc326ca3c917deadc9","name":"Nikhil Tyagi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71d08a63e03c3ae0f33ed37cd4f6f276bfa8e8431cb37c0d90899e8734bb15f5?s=96&d=mm&r=g","caption":"Nikhil Tyagi"},"description":"Experienced Frontend Developer and UX Designer who specializes in HTML5, CSS3 SASS\/SCSS, Bootstrap 4, Materialize, Semantic UI frameworks, Javascript, Jquery, Ajax, React JS and APIs.","sameAs":["https:\/\/www.lambdatest.com"],"url":"https:\/\/www.webcodegeeks.com\/author\/nikhil-tyagi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/24272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/12181"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=24272"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/24272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/917"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=24272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=24272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=24272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}