Difference between revisions of "Template:Note:CSS Color"

From HSYCO
Jump to navigation Jump to search
Line 1: Line 1:
{{note|An '''html color''' can be specified as  
+
{{note|A '''css color''' can be specified as  
 
*hex value: ''#<rr><gg><bb>'' E.g. ''#FF1010''
 
*hex value: ''#<rr><gg><bb>'' E.g. ''#FF1010''
 
*color name: red, blue, white...
 
*color name: red, blue, white...

Revision as of 14:43, 13 January 2014

A css color can be specified as
  • hex value: #<rr><gg><bb> E.g. #FF1010
  • color name: red, blue, white...
  • as rgb: rgb(<r>,<g>,<b>) E.g. rgb(255,30,30)
  • as rgba: rgba(<r>,<g>,<b>,<alpha>) E.g. rgba(255,30,30,0.5)