Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between `lightgrey` and `lightgray` in CSS?

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:

enter image description here

Is there any difference?

like image 735
Aishwarya Shiva Avatar asked Jul 11 '15 17:07

Aishwarya Shiva


People also ask

Is Dark grey lighter than grey?

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).

What color is light gray?

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.

How hex and RGB color is used in CSS?

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.


2 Answers

According to CSS3 Color, there is no difference:

┌────────────┬─────────┬─────────────┐
│ Color name │ Hex rgb │   Decimal   │
├────────────┼─────────┼─────────────┤
│ lightgray  │ #d3d3d3 │ 211,211,211 │
│ lightgrey  │ #d3d3d3 │ 211,211,211 │
└────────────┴─────────┴─────────────┘
like image 188
Oriol Avatar answered Oct 09 '22 23:10

Oriol


en-US:

.foo { color: gray; }

en-UK

.foo { colour: grey; }

since colouris not supported, use gray

like image 35
Yukulélé Avatar answered Oct 09 '22 22:10

Yukulélé