Kyle T
Premium Member
Registered: 11th Sep 04
Location: Selby, North Yorkshire
User status: Offline
|
If I know the RGB value of a colour, how can I translate that into the format used on a HTML Page? ie "#FFFFFF"?
ta
Lotus Elise 111R
Impreza WRX STi
|
50Calibre
Member
Registered: 13th Dec 04
User status: Offline
|
use a convertor like photoshop or perhaps an online one somewhere to convert it into hex (#FFFFFF)
|
Kyle T
Premium Member
Registered: 11th Sep 04
Location: Selby, North Yorkshire
User status: Offline
|
Done it, you can do <body bgcolour-"rgb 255 255 255">
Lotus Elise 111R
Impreza WRX STi
|
Dan B
Member
Registered: 25th Feb 01
User status: Offline
|
Or you could just convert the decimal value to hex......easy, just remember, decimal is base-10, hex is base-16!
Or, alternatively, cheat!
[Edited on 08-06-2006 by Dan B]
|
Ian
Site Administrator
Registered: 28th Aug 99
Location: Liverpool
User status: Offline
|
That notation isn't in the standards Kyle so support for it could potentially be patchy. Colour should be spelt color also.
Converting the numbers is easy, get the decimal value for each part of R, G and B and convert each to hex. I you can't do this in your head like Dan then there's loads of software out there. Just search for hex code freeware.
|
Dan B
Member
Registered: 25th Feb 01
User status: Offline
|
Or click on the link-word "cheat" in my post above!
|
Kyle T
Premium Member
Registered: 11th Sep 04
Location: Selby, North Yorkshire
User status: Offline
|
quote: Originally posted by Ian
That notation isn't in the standards Kyle so support for it could potentially be patchy. Colour should be spelt color also.
Converting the numbers is easy, get the decimal value for each part of R, G and B and convert each to hex. I you can't do this in your head like Dan then there's loads of software out there. Just search for hex code freeware.
ahh kk, ill translate it all n stop being lazy then
thanks all
Lotus Elise 111R
Impreza WRX STi
|
dave17
Member
Registered: 3rd Sep 02
Location: Greater London
User status: Offline
|
Or just open it in Photoshop, click window > Info
Then hover over the colour you want, will show the # code on there
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
http://www.colorschemer.com/online.html
|