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 light gray, IntelliSense offered me the following:

enter image description here

Is there a difference?

+3


source to share


5 answers


According to CSS3 Color , there is no difference:



β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Color name β”‚ Hex rgb β”‚   Decimal   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ lightgray  β”‚ #d3d3d3 β”‚ 211,211,211 β”‚
β”‚ lightgrey  β”‚ #d3d3d3 β”‚ 211,211,211 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

      

+5


source


They are exactly the same, check this article for more information.



Gray is the more popular spelling in the US, while gray dominates the UK.

+1


source


I found in IE7 that "lightgrey" displays light gray / gray, but "lightgray" maps to a darker gray / gray. Therefore, I would recommend that you use rgb values ​​to get your desired color in older browsers.

+1


source


This confuses. I think it's a problem in the Dictionary IntelliSense dictionary US written as lightGray , and in the British dictionary - lightgrey . But it should give the same color value.

0


source


en-USA:

.foo { color: gray; }

      

en-UK

.foo { colour: grey; }

      

as colour

not supported usegray

0


source







All Articles