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

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