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
Post a Comment