Warning: include(/home/.lurky/jenni/star-girl.org/skins/cookiecheck.php) [function.include]: failed to open stream: No such file or directory in /home/jenni/star-girl.org/pages/tutorials/csscgi/backgrounds.php on line 1
Warning: include() [function.include]: Failed opening '/home/.lurky/jenni/star-girl.org/skins/cookiecheck.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/jenni/star-girl.org/pages/tutorials/csscgi/backgrounds.php on line 1
Warning: include() [function.include]: Filename cannot be empty in /home/jenni/star-girl.org/pages/tutorials/csscgi/backgrounds.php on line 2
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/jenni/star-girl.org/pages/tutorials/csscgi/backgrounds.php on line 2
Backgrounds
If you want to add a background to your page using CSS, it's pretty simple. Follow this brief tutorial to find out how.
1. Open up the page you want to add CSS to, or create a new page. Insert this code after your HEAD tag:
2. Now change http://your-site.com/your-background.gif to the name of your background, and save!
3. If you want your background to stay fixed in the same place when you scroll up or down the page, use this code instead:
4. If you want your background a certain colour, rather than an image, use this code instead:
5. Change the #000000 to either the hex colour of your choice or a colour word (e.g. red) and save.
Note: You only need to put the beginning and end parts of your CSS code once on a page. So if you use more than one bit of code on your page it will look like this:
Warning: include() [function.include]: Filename cannot be empty in /home/jenni/star-girl.org/pages/tutorials/csscgi/backgrounds.php on line 40
Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/jenni/star-girl.org/pages/tutorials/csscgi/backgrounds.php on line 40