Added abbreviated HEX value for color. (#24746)

For consistency, used white as an example for all 4 examples.
This commit is contained in:
JP Rowan
2018-12-12 21:48:09 -05:00
committed by Randell Dawson
parent 85afde04e5
commit 5ef77a0181

View File

@@ -29,10 +29,11 @@ to purple and the rest of the page to blue.
```
![twobackground](https://user-images.githubusercontent.com/26467304/31036152-0607936a-a539-11e7-9e9f-a5e60ade042d.png)
In CSS color can be defined in three ways:
* A valid color name such as `blue`
* A HEX value such as `#FFFFF` (Hex value for white)
* An RGB value such as `rgb(76,175,80)` (RGB value for light green)
In CSS color can be defined in four ways: (using white as an example)
* A valid color name such as `white`.
* A HEX value such as `#FFFFFF`.
* An abreviated HEX value such as '#FFF'.
* An RGB value such as `rgb(255,255,255)`.
### Background Images
You can use the background image property to set an image as a background for an element.