colors - Are there any good reasons for using hex over decimal for RGB colour values in CSS? -
RGB (255,255,255)
notation is available after CSS1 but #ffffff
seems extremely popular.
Obviously this is a bit more compact. I know that hex is more closely related to the underlying bytes, and understand that arithmetic will be of those values, but this is not something you are going to do with CSS.
Color values are generated from designers (such as mine), who do not face hex marking anywhere, and are more familiar with decimal symbols, in which they can be used in the app The main way of specifying the color is - in fact I have met some people who do not know how the given hex value breaks into RGB components and it is assumed that it will color directly , Such as the Pantone color system reference (such as PMS432).
So, there is no reason to use decimals?
Hex value is easy to copy and paste from your favorites Image Editor.
RGB value is easy to manipulate with Javascript.
(My favorite hex color value is #EDEDED and a site that we had in the background of #F1F1F1 in the latter part of a customer Invo Motorsport: -)
ed.
Comments
Post a Comment