CSS Transparent Background Colour in different browsers

As of this writing, all new browsers (especially IEs) still do not support transparent background colour. In IE, I have noticed that they completely omit the background colour. This is the sequence I use so that the unsupported browsers still display a plain background colour and does not break the layout.
background-color:#f2e5da; /* IE8 */
background-color:rgba(242, 229, 218, 0.9); /* FF, Opera, Chrome,
                                           Safari */
^background-color:#f2e5da; /* IE6/IE7 hack */
_background-color:#f2e5da; /* IE5/IE6 hack */

Comments

Popular posts from this blog

How to resolve 'res://ieframe.dll/acr_error.htm#' error (Internet Explorer stopped working while viewing a website)

htaccess: Redirecting multiple domains to the main domain

Removing index.php in Codeigniter using XAMPP on Windows