Color Text

Comments/questions about the site or the forum? Post them here. Additionally you'll find here important announcements and news releases from MSCL.com.
Post Reply
User avatar
Nostradamus
Marshall Wannabe
Posts: 1213
Joined: Jun 29th 2002, 6:42 am
Location: No matter where you go, There you are.

Color Text

Post by Nostradamus » Jul 24th 2004, 2:19 am

From the forum PHP FAQ:
Changing the colour of text is achieved by wrapping it in [color=][/color]. You can specify either a recognised colour name (eg. red, blue, yellow, etc.) or the hexadecimal triplet alternative, eg. #FFFFFF, #000000.
I've always used the color names, but is there an advantage to using the hexadecimal system, like more shades and hues? And if so, how does one know what code to enter for a desired color?

Just curious...

:scratchinghead:

:)
I have never killed a man, but I have read many obituaries with great pleasure.
-- Clarence Darrow

I didn't attend the funeral, but I sent a nice letter saying I approved of it.
-- Mark Twain

User avatar
Nostradamus
Marshall Wannabe
Posts: 1213
Joined: Jun 29th 2002, 6:42 am
Location: No matter where you go, There you are.

Post by Nostradamus » Jul 24th 2004, 2:43 am

:oops:

Heh, I did a Google search and found an explanation in seconds. This is an article summing up the hexadecimal color code with a nifty chart. Here is a further explanation of the 256-color palette.

I'm still learning, but I think I can make it work now...

:idea:
I have never killed a man, but I have read many obituaries with great pleasure.
-- Clarence Darrow

I didn't attend the funeral, but I sent a nice letter saying I approved of it.
-- Mark Twain

User avatar
Sascha
MSCL.com Team
MSCL.com Team
Posts: 1562
Joined: Jun 10th 1999, 5:20 pm
Location: Switzerland
Contact:

Post by Sascha » Jul 24th 2004, 5:09 am

This is also a nice site with tools (especially the interactive html color mixer) that help you selecting or displaying all possible colors.

User avatar
Nostradamus
Marshall Wannabe
Posts: 1213
Joined: Jun 29th 2002, 6:42 am
Location: No matter where you go, There you are.

Post by Nostradamus » Jul 25th 2004, 6:57 am

Wow, nifty! Thanks.
I have never killed a man, but I have read many obituaries with great pleasure.
-- Clarence Darrow

I didn't attend the funeral, but I sent a nice letter saying I approved of it.
-- Mark Twain

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests