+ 4

Hexadecimal colors

Hexadecimal color #FFF is same as #FFFFFF. please explain it.

5th Dec 2017, 10:53 PM
Qwqwq Rt
Qwqwq Rt - avatar
7 odpowiedzi
+ 5
It is just a shortened version. It's kind of like going through 0 - 100 by tens, but instead is going through 0 - 255 by 16's I believe. So for each color R, G, and B (#RGB) you only get 16 different values instead of all 256 for each color. It's usually used to define grey, white, and black because it's much faster and easier to type. White: #FFF Grey: #AAA, #666, #EEE, #333, etc. Black: #000
5th Dec 2017, 11:10 PM
Zeke Williams
Zeke Williams - avatar
+ 3
hello @dharmik
6th Dec 2017, 5:29 AM
Qwqwq Rt
Qwqwq Rt - avatar
0
Stephirio false
20th Nov 2020, 10:25 AM
David Ordás
David Ordás - avatar
- 1
someone knows PHP?
5th Dec 2017, 11:11 PM
Stephirio
Stephirio - avatar
- 1
hii
6th Dec 2017, 5:17 AM
dharmik prajapati
dharmik prajapati - avatar
- 2
No, they aren't. I know that CSS use #FFF like code but in HTML you must use the second option.
5th Dec 2017, 11:08 PM
Stephirio
Stephirio - avatar