I have a 1024 x 1000 .jpg file that I would like to use as a background for a web site. I am not sure on how to go about that. Can you please let me know the steps involved.
This is dependent on the programming language you have used while building your website.
Here are the steps for HTML:
1. In the html of the page you want to add the background to use the following tag
<body background="background.jpg">. Make sure to reference the file that you want in the quoted area. This tells the browser that the following is the background for the body of the page.
2. Make sure the tag is in between the <html> and </body></html>
Below is a example of how it should look for a html site.
<html>
<body background="background.jpg">
<h3>Look: A background image!</h3>
<p>Both gif and jpg files can be used as HTML backgrounds.</p>
<p>If the image is smaller than the page, the image will repeat itself.</p>
</body>
</html>
If you are using CSS you need to insert the following in the style sheet you are using for your website.
Below is a example of how it should look for a CSS site.
1. In the style sheet you want to add the background image use the following tag after the style tag body {background-image:url('bgdesert.jpg');}. Make sure to reference the file that you want in the quoted area. This tells the browser that the following is the background for the body of the page.
2. Make sure the tag is in between the <html><head><style type="text/css"> and </style>
Here is an example of the CSS version of what you are trying to do.
<html>
<head>
<style type="text/css">
body {background-image:url('bgdesert.jpg');}
</style>
</head>
<body>
<h1>Hello World!</h1>
<p>This text is not easy to read on this background image.</p>
</body>