• Resolved sirram

    (@sirram)


    I’m building a WordPress website for the first time and have made good progress. I was already familiar with six-character colour codes but it seems that some CSS syntax only allows for three-characters (i.e. a reduced set comprising just 4096 colours).

    Could someone point me to a colour-picker website which shows these 4096 colours and their three-character codes? For example, I was Googling to find some CSS code to change the background colour of my side-bar. It works but I want to change the following line:

    background-color: #DDE;

    Without a colour-picker & their codes, I am stuck.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    but it seems that some CSS syntax only allows for three-characters (i.e. a reduced set comprising just 4096 colours).

    That doesn’t sound correct. CSS should/will accept any valid color codes. Where are you trying to put that in?

    Thread Starter sirram

    (@sirram)

    Hi Jan,

    Embarrassingly, I was being a bit stupid. The example code I picked up was only using three character colour codes – so I assumed that this was a limitation. I now realise that if I enter the full six characters, they are accepted.

    Forget I raised it – but many thanks for answering!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Three-character colour codes’ is closed to new replies.