Skip to content

Instantly share code, notes, and snippets.

@dhunmoon
Last active September 8, 2015 11:44
Show Gist options
  • Save dhunmoon/68cb657b4c007d7b09fc to your computer and use it in GitHub Desktop.
Save dhunmoon/68cb657b4c007d7b09fc to your computer and use it in GitHub Desktop.
CSS: RGBA and ARGB colors
background: red or transparent; /* Feedback color */
background: rgba(red, green, blue, alpha); /* For modern browsers */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='#FFFFFFFF', EndColorStr='#FFFFFFFF')"; /* For IE8 */
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#FFFFFFFF', EndColorStr='#FFFFFFFF'); /* For IE6,IE7 */\
/*
Link To generate RGBA colors for all browsers:
http://beijingyoung.com/articles/rgba-argb-converter/
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment