View Full Version : background graphics
trianth
03-06-2004, 08:31 AM
I can't seem to get background images to work as a bg for my page. Am I doing something wrong?: <body background="ava2.gif"> or is it somehting else?
DCElliott
03-06-2004, 08:41 AM
Is the background file in the same directory? If not you need to provide the relative path to the file. And if this is on your website - is the graphic uploaded to the proper place?
DE
pascal
03-06-2004, 08:51 AM
Originally posted by trianth
I can't seem to get background images to work as a bg for my page. Am I doing something wrong?: <body background="ava2.gif"> or is it somehting else?
first of all: do you get the problem on you local machine, or after you've uploaded?
If you only get it on your local machine, make sure you save both files.
If you get the problem after uploading:
If you have uploaded the image, and the image is in the exact same folder, that code should work.
But a better way to write it down is something like this:
<html>
<head>
<title>title of your website</title>
<style type="text/css">
body{
background-image: URL(ava2.gif);
}
</style>
</head>
<body>
Content of your site
</body>
</html>
azlatin2000
03-06-2004, 10:09 AM
Yo make it easier you can put the style sheet pascal gave above in to a seperate file and link to it:
<LINK REL="stylesheet" HREF="stylesheetname.css">
This will save you the hassle of going thruogh many pages just top change the background.
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.