+ 1
CSS color
How am I supposed to use hex colour in css styling? For example, color: red; gives a correct output but color: #595959; does not provide any change in output.
3 Respuestas
+ 4
it is working but color is very light .
+ 4
Okudero Olamilekan it's something Greyish-red colour
+ 2
Use internet or some color picker to find perfect color, than copy/paste code, if you code on vs code you have build in color picker.
And remember basics:
Hex need to have # and it is followed with combination of number and letters (0-9 and a-f)
First pair is red shade, second is green and last is blue, f is lightest and 0 is darkest, so:
#ff0000 - is red color
#00ff00 - green
#0000ff - blue
When you repeat same symbols you can type it shorter like #f00
#ffffff - white
#000000 - dark
Any other combination of same letters/numbers like
#eee,#333,#272727 #c2c2c2 will give you some gray color