mozilla

Revision 41474 of <color>

  • Revision slug: CSS/color_value
  • Revision title: color (CSS data type)
  • Revision id: 41474
  • Created:
  • Creator: BijuGC
  • Is current revision? No
  • Comment /* Specifications */

Revision Content

{{template.CSSRef()}}

{{template.Fixall()}}

Summary

In CSS a color value can be specified in any of the following ways:

  • as a hexidecimal RGB value
  • as a regular RGB or RGBA {{template.Fx_minversion_inline(3)}} value
  • as a regular HSL or HSLA {{template.Fx_minversion_inline(3)}} value
  • as one of the pre-defined color keywords

Specifications

  • http://www.w3.org/TR/css3-color/#colorunits
  • http://dev.w3.org/csswg/css3-color/
  • http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color

See Also

{{template.Cssxref("color")}}, {{template.Cssxref("background-color")}}, {{template.Cssxref("border-color")}}, {{template.Cssxref("outline-color")}}

Revision Source

<p> 
{{template.CSSRef()}}
</p><p>{{template.Fixall()}}
</p>
<h3 name="Summary"> Summary </h3>
<p>In CSS a color value can be specified in any of the following ways:
</p>
<ul><li> as a hexidecimal RGB value
</li><li> as a regular RGB or RGBA {{template.Fx_minversion_inline(3)}} value
</li><li> as a regular HSL or HSLA {{template.Fx_minversion_inline(3)}} value
</li><li> as one of the pre-defined color keywords
</li></ul>
<h3 name="Specifications">Specifications</h3>
<ul><li> http://www.w3.org/TR/css3-color/#colorunits
</li><li> http://dev.w3.org/csswg/css3-color/
</li><li> http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color
</li></ul>
<h3 name="See_Also"> See Also </h3>
<p>{{template.Cssxref("color")}}, 
{{template.Cssxref("background-color")}},
{{template.Cssxref("border-color")}},
{{template.Cssxref("outline-color")}}
</p>
Revert to this revision