what is the html code to use a picture on my hard drive as a web site background?

Public Comments

  1. Well its not the best to use a background on all the page its better to use it on a specified table then you will be able to control the background not to be dublicated. but for the page you can use this <style type="text/css"> <!-- body { background-image: url(Filename.jpg); } --> </style> I
  2. Unless your hard drive also hosts your webserver (or is publically accessable to the internet in some other way - BAD IDEA), you don't. You copy the image from your hard drive to your web server (via FTP or SCP or whatever method your hosting provider allows), and then you include this tag in your HTML code: <body background="image.gif"> (where "image.gif" is the name of the image file you've uploaded).
Powered by Yahoo! Answers