Which is better, #fff or #FFF? [closed]
Which is better to define color?
color:#fff;
or
color:#FFF;
?
I like #FFF because it catch your eyes' focus faster than #fff. But PS returns lowercase, so I was wondering if lowercase hexadecimal is better than uppercase. Why this thread closed? o.Oa
It depends what colour you want. #fff is 'white' and #FFF is 'WHITE'. Your choice.
Neither;
color: white;
In all seriousness, tho', it doesn't matter so long as it matches the general design of your site. (For example, SO or FB should use #FFF
, while, say, Apple would use #fff
. Matches the rounded corners better, you see?)
The convention for Hex in CS has always been uppercase (as far as I know), with web designers it tends to be lowercase - the only thing that is "better" is sticking to one scheme and using it only. Switching back and forth just looks messy.
Pff I prefer
color: rgb(255,255,255)
If you are talking about case sensitivity then it does not effect.
http://en.wikipedia.org/wiki/HTML_color_names
In HTML, documents using 4.01 specifications colors can be specified by name. Names are defined in this context to be case-insensitive. Using colors in HTML has been deprecated in favor of CSS.favor of CSS.
jsfiddle.net
Between below two there is no difference.
color:#fff;
or
color:#FFF;
CSS Color Codes
Go for : #FFFFFF this kind of hexa color than rather than short hand.
In CSS, you define a color using either the hexadecimal color code, the RGB color code, or the actual color name. A benefit of using hexadecimal and RGB color codes is that you have many more options than just supplying a color name.
The color picker and chart on this page provide you with the hexadecimal color codes. The color picker also provides the RGB color code.
Hexadecimal color codes are often referred to as "hexadecimal colors", "hex colors codes", "color values" and a few other terms. "Hexadecimal color values" is probably the most accurate term as they are made up of hexadecimal numbers.
精彩评论