HTML Tutorial

BACKGROUNDS - Myspace Code, Layout Codes, Layouts HTML Codes: HTML

Copy and Paste Guide and Code Hacks for Myspace Backgrounds and Layouts

If you don't yet have any background graphics or images, try this Google Search:

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.

For example, if your image is, add this code inside your "About Me" area in your profile:

body { background: url(; }

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

body { background: url(;
        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, that we want to be fixed, and repeat only horizontally, we put this in our "About Me" profile box:
 body { background: url(;
        background-attachment: fixed;
        background-repeat: repeat-x;
For more information on backgrounds using CSS, see Chapter 4: Backgrounds and Color in CSS: An Interactive Tutorial for Beginners.

Please also see:

The book
you NEED:


Learn How to Code your Own Web Site with HTML and start your own .com

[ Back to the FAQ! | Back to the HTML Code Tutorial ] / webstation / html code tutorial / FAQ: myspace html code resources

Get demos for and with 100% guaranteed success. Our best quality prepares you well before appearing in the final exams of

On a Budget? Get 100% Free Internet.