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

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:
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.

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:

The book
you NEED:



Google
 
Web davesite.com

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 ]

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

Check out my free Alternate Reality Game - preventThetrace