davesite.com / webstation / html code tutorial / FAQ: myspace html code resources

Dave's MySpace HTML Code Tutorial


HTML Tutorial
FAQ: Myspace HTML Code and Profile Resources




Changing your Background Graphics
If you don't yet have any background graphics or images, try this Google Search:
Google
 
Web davesite.com

It's often easiest to load a background graphic or image for Myspace from your web site or another place that's holding an image for you.

Example Code

For example, if your image is http://reallycreativename.com/background.jpg, add this code inside your "About Me" area in your profile:

body { background: url(http://reallycreativename.com/background.jpg); }

If you want the image to stay still, add background-attachment: fixed; so it looks like this:

body { background: url(http://reallycreativename.com/background.jpg);
        background-attachment: fixed; }

If you want the image to only repeat horizontally, add:

background-repeat: repeat-x;

If you want the image to only repeat vertically, add:

background-repeat: repeat-y;

If you want the background to not repeat at all, add:

background-repeat: no-repeat;
So, for our image located at http://www.reallycreativename.com/background.jpg, that we want to be fixed, and repeat only horizontally, we put this in our "About Me" profile box:
 <STYLE>

 body { background: url(http://reallycreativename.com/background.jpg);
        background-attachment: fixed;
        background-repeat: repeat-x;
      }

 </STYLE>
For more information on backgrounds using CSS, see Chapter 4: Backgrounds and Color in CSS: An Interactive Tutorial for Beginners.

Please also see:

Back to the Myspace HTML Codes FAQ Page

Note: I am not directly affiliated with Myspace.com, I'm just a member. Please see the Myspace Site for official Myspace information. Good Luck and Enjoy Myspace!

All trademarks are the sole property of their respective owners.

15 for $15 with 
Napster!

Software, Books & 
More

[ Back to the FAQ! | Back to the HTML code Tutorial ]