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?
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?
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
They are exactly the same color , check this article for more information.
Gray is the more popular spelling in the US, while grey reigns supreme in the UK.
I've found in IE7 that "lightgrey" maps to a light grey/gray color but "lightgray" maps to a darker grey/gray. So I'd recommend you use the rgb values to get the color you desire across older browsers.
lightgray
is not supported by IE ≤7; lightgrey
is supported though.
That's the difference.
Thats confusing I think its the IntelliSense dictionary problem in US dictionary its spelled as LIGHTGRAY and in UK dictionary its LIGHTGREY. But it should give same color value.
© 2022 - 2024 — McMap. All rights reserved.
1
? – Ablution