Be with friends! Join NeoExtreme’s forum to discuss Neopets, find tips and tricks, and to have fun! Jump to the forums or if want to know more, read our tutorial!

Backgrounds

Last updated 19 Sep 2005
Thank you for using our NeoExtreme tutorials! We are pleased to know that we have helped you in some way today. If you have any questions or concerns about our tutorials, please contact us.

Tutorial

Now for what you came for!
When you want to do a background for your page using CSS, there are many things to learn first. Lets start off with the basics. Use the "already have a CSS" code if you already have a CSS (just add it under your other coding). If you don't have a CSS, use "new CSS".

Already Have a CSS
body {background: url("URL");background-position: bottom right; background-attachment: fixed; background-repeat: no-repeat; background-color: FFFFFF}

New CSS
<style type="text/css"> body {background: url("URL");background-position: bottom right; background-attachment: fixed; background-repeat: no-repeat; background-color: FFFFFF} </style>


URL is the URL of the image (such as http://www.neoextreme.com/images/backgrounds.jpg).

Background Position is where the image will be placed. Bottom right will place it in the bottom right hand corner. Top left will place it in the top left hand corner. Get it?

Background Attachment describes if it will stay "stuck" on the page. Like if you were to scroll down the page, would it still stay in the bottom right hand corner, or will it move up when your scroll? Fixed makes it stay.

Background Repeat is if the background will continue to repeat over and over or just have one image.
No Repeat: no-repeat
Repeat: repeat-y

Background Colour is what the colour of your background will be. Lets say you create a black graphic, but it doesn't cover the whole background and there is still white spaces. What are you going to do? Change the background colour to black is what you're going to do! :D

The important thing to know if you don't have to include all those parts if you don't want to. You could just have background URL and position if you wanted, or maybe just colour if you like. :) You can edit the background CSS to be whatever you need.

Neoextreme is proud to be sponsored by Budgethost.ca. Check out Budgethost.ca to get the best deals for your website!