Tutorial : HTML colors and MySpace codes

Posted October 19th @ 9:57 pm by mike

This is a little tip on how you should use HTML colors when you customize your profile.

If you want to change the colors in your profile, you should be aware that using hexadecimal colors (like #FFFFFF for white) won’t work with MySpace. Why ? Well, MySpace changes the “#” sign because it prevent (or make it more difficult) codes from taking actions on HTML tags that has an “id”, like hiding the ad.

But there is a way that you can use colors into codes without the “#” sign. You can either use the text value (like using black or white) or the RGB value.

Here are some examples :

White in text is simply “white”
White in hexadecimal format is #FFFFFF (you can’t use this one with MySpace!)
White in RGB format is rgb(255, 255, 255)

So you could have a code that would look like that :
<style>
.navigationBar {
background-color: rgb(255, 255, 255);
}
</style>

But that would’nt work with myspace (but it would work whitout problems in any normal HTML documents) :
<style>
.navigationBar {
background-color: #FFFFFF;
}
</style>

Finally, you can see a list of available HTML color names here. There is also a “color converter” that converts hexadecimal colors to RGB format (MySpace friendly format).

1 Trackbacks/Pingbacks

  1. Pingback: Tutorial : HTML colors and MySpace codes | Myspace World on October 22, 2007

Leave a comment

OpenID Login

Standard Login