I am using Microsoft Visual Studio 2012 to edit my CSS. When I wanted to use a light gray color, the IntelliSense suggested me this:
Is there any difference?
DarkGray is lighter than Color. Gray ? It's true. So-called Gray is 0x80 (×RGB) versus DimGray (or should that be "Grey") at 0x69 (×RGB).
Light gray is a pale shade of gray with the hex code #D3D3D3, an achromatic color made by adding just a tiny bit of black to a white base. Out of a list of nine standard web color shades of gray, light gray is the second lightest after gainsboro.
The most common way to specify colors in CSS is to use their hexadecimal (or hex) values. Hex values are actually just a different way to represent RGB values. Instead of using three numbers between 0 and 255, you use six hexadecimal numbers. Hex numbers can be 0-9 and A-F.
According to CSS3 Color, there is no difference:
┌────────────┬─────────┬─────────────┐
│ Color name │ Hex rgb │ Decimal │
├────────────┼─────────┼─────────────┤
│ lightgray │ #d3d3d3 │ 211,211,211 │
│ lightgrey │ #d3d3d3 │ 211,211,211 │
└────────────┴─────────┴─────────────┘
en-US:
.foo { color: gray; }
en-UK
.foo { colour: grey; }
since colour
is not supported, use gray
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With