From 0e80d750a32f84cd26827796d3427131f13943b0 Mon Sep 17 00:00:00 2001 From: Max Harmony Date: Sun, 4 Nov 2018 00:40:00 -0400 Subject: [PATCH] short hexcodes (#20964) --- guide/english/css/colors/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guide/english/css/colors/index.md b/guide/english/css/colors/index.md index b609321958..528665c54d 100644 --- a/guide/english/css/colors/index.md +++ b/guide/english/css/colors/index.md @@ -55,6 +55,8 @@ Hex codes are case insensitive, meaning that #FFFFFF and #ffffff would be the sa Additionally, there are 16,777,216 possible color combinations using hexcode. +A shorthand form also exists. The shorthand #ABC is equivalent to #AABBCC. In this form, 4096 colours are available. + ### Opacity The CSS3 opacity property sets the opacity for the whole element (both background color and text will be opaque/transparent). Unlike alpha values specified with rgba and hsla, opacity is inherited by child elements.