Just in case someone does have this this issue, a totally unrelated search regarding HTML threw up this little nugget:
Why does HTML think “chucknorris” is a color? - Stack Overflow
Which brought me to random string to css color in case you want to know what colo(u)r you represent.
Too good not to share, I thought
Why does HTML think “chucknorris” is a color?
-
- Administrator
- Posts: 7209
- Joined: 15 Jan 2010, 22:52
- Location: Middle of England
-
- Administrator
- Posts: 78471
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Why does HTML think “chucknorris” is a color?
Learn something new every day...
Thanks!
Thanks!
Best wishes,
Hans
Hans
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Why does HTML think “chucknorris” is a color?
It seems I'm green with envy, whereas Claude comes closest to a glass of wine, (quite fittingly)!
I won't say much about the colour for Leif!
I won't say much about the colour for Leif!
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 7209
- Joined: 15 Jan 2010, 22:52
- Location: Middle of England
Re: Why does HTML think “chucknorris” is a color?
Moi? Brown?
More like Leif
You can use the they give you:
More like Leif
You can use the they give you:
You do not have the required permissions to view the files attached to this post.
Leif
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Why does HTML think “chucknorris” is a color?
It looks too "black" in the font... I thought I was kind to give you a bit of colour.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 7209
- Joined: 15 Jan 2010, 22:52
- Location: Middle of England
Re: Why does HTML think “chucknorris” is a color?
I think I'd get plenty of colour if I drank any wine the colour of Claude above...
Leif
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Why does HTML think “chucknorris” is a color?
Leif wrote:I think I'd get plenty of colour if I drank any wine the colour of Claude above...
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Panoramic Lounger
- Posts: 8175
- Joined: 25 Jan 2010, 09:09
- Location: retirement
-
- NewLounger
- Posts: 1
- Joined: 16 Nov 2020, 05:49
Re: Why does HTML think “chucknorris” is a color?
Coloring in HTML basically takes two types of values, RGB(R, G, B - each from 0 to 255) or HEX#(RR, GG, BB each from 0 to F in hexadecimal) which can be represented interchangeably. If you are putting any word at bgcolor that contains a few hexadecimal character then that character will show you some unexpected color code that you never imagine. The logical explanation behind this - during Netscape days, incorrect digits in a color code were considered as 0.
So if you apply the same rule to chucknorris
So if you apply the same rule to chucknorris
- Replace all non-hex characters with 0 - you get c00c0000000
- Pad out the characters so the total numbers are divisible by 3 - c00c 0000 0000
- Split into 3 groups for RGB - c00c, 0000, 0000
- Truncate the digits from the right to 2 characters in each color group - c0, 00, 00 (RGB).
-
- Administrator
- Posts: 78471
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Why does HTML think “chucknorris” is a color?
Welcome to Eileen's Lounge! Thanks for the explanation (which corresponds to that in the StackOverflow link in the first post)
Best wishes,
Hans
Hans
-
- PlutoniumLounger
- Posts: 15615
- Joined: 24 Jan 2010, 23:23
- Location: brings.slot.perky
Re: Why does HTML think “chucknorris” is a color?
That kind of stunt makes me see red.Leif wrote: ↑26 Jan 2017, 09:29Which brought me to random string to css color in case you want to know what colo(u)r you represent.
Cheers
Chris
There's nothing heavier than an empty water bottle