This article is a follow up of another article of mine dealing with the same problem which was written two years earlier. Now, in the light of the increased support for CSS3 the solution I will offer is already fully supported by all major browsers. The new solution deals with RGBA CSS3 backgrounds for Mozilla FireFox, Google Chrome, [...]
Posts Tagged ‘css filters’
Using RGBA to Prevent the CSS Opacity Inheritance from Parent to Child Elements
Posted in CSS, CSS Hacks, CSS3, Tips and Tricks, Web Development, tagged cancel transparency propagation, control the alpha opacity filter in internet explorer, control the propagation of alpha opacity filter in inte, crossbrowser css rgba setting, crossbrowser rgba, css filters, css opacity, inheritance of opacity in html elements, override opacity, override transparency, rgba css3, rgba for internet explorer, stop opacity inheritance, stop opacity propagation on November 21, 2010 | 6 Comments »
CSS Hack for Safari and Google Chrome: Redux
Posted in Browsers, CSS, CSS Hacks, Tips and Tricks, tagged css filters, css hack, google chrome css hack, safari css hack on July 30, 2009 | 3 Comments »
As body:nth-of-type(1) and body:first-of-type are supported by FireFox 3.5x, the hack that I wrote about in this post cannot be used anymore. You may try the following one, which targets only Google Chrome and Safari: @media screen and (-webkit-min-device-pixel-ratio:0) { div { color: red; /* The text will appear red only in Safari and Google [...]
10 Dirty CSS Tips and Tricks
Posted in CSS, CSS Hacks, Tips and Tricks, Web Development, tagged alpha transparency css filters internet explorer ie ove, CSS, css filters, css hack, css opacity, css tips and tricks, css transparency, get css property value, google chrome css hack, IE6 css hack, IE7 css hack, IE8 CSS opacity, max number of css files, safari css hack, transparent border in IE6 on January 6, 2009 | 5 Comments »
Here is a collection of 10 CSS tips, tricks in blogposts I have written during the last year that you may find useful: 01. Better Image Scaling and Resampling in Internet Explorer 02. Setting Opacity and Other Filters in Internet Explorer 8 03. The 32 External CSS Files Limitation of Internet Explorer and More 04. Unobtrusive CSS Loading Indicator for Images 05. CSS: Filtering [...]
CSS: Filtering and Distinguishing Google Chrome and Safari
Posted in Browsers, CSS, CSS Hacks, Tips and Tricks, tagged css filters, css hack, google chrome css hack, safari css hack on October 1, 2008 | 4 Comments »
As body:nth-of-type(1) and body:first-of-type are supported by FireFox 3.5x, the hack that I wrote about in this post cannot be used anymore. You may try the following one, which targets only Google Chrome and Safari. Personally, I avoid using CSS hacks, and when writing client code I always assume that anything can be done the “legal” [...]
Controlling the CSS Opacity Rate of Child Elements in Transparent Parents in Internet Explorer
Posted in Browsers, CSS, CSS Hacks, Tips and Tricks, tagged cancel transparency propagation, control the alpha opacity filter in internet explorer, control the propagation of alpha opacity filter in inte, css filters, css opacity, ie css hacks, inheritance of opacity in html elements, internet explorer hack, opacity, override opacity, override transparency, stop opacity propagation on September 11, 2008 | 9 Comments »
This article is rather old. Please, read the updated version for a cross-browser solution. The alpha transparency filter applied on parent elements is inherited by their children, which is not always the desired behavior and can create unwanted design effects. However, due to a browser bug in Internet Explorer, there is a cool hack that allows not only to [...]