Question:

How do I get an image from my computer to be the background for my website?

by  |  earlier

0 LIKES UnLike

I have a VERY basic understanding of CSS: I know where I need to put the path to my image (url ("my image.gif"), and I know that this can be a website link. This may be a really dumb question, but I'm trying to make the background of my website a picture that is not on the web, but rather from my computer. How do I figure out its path? (I tried entering c:\documents and settings\documents, etc. but it didnt work). Any ideas?

 Tags:

   Report

5 ANSWERS


  1. go to edit ,cut or copy , the go to web page and paste. or click on picture and drag it there


  2. It's impossible to point it to a destination on your own computer and for the link to work on the internet. You need to upload the picture to your website and point it to there.

    If you use a destination such as c:\documents and settings\documents then it will point to the persons own documents folder on their computer where the picture wont obviously be as you were pointing it to a destination on your computer.

  3. Include a picture that is in the same directory , where your HTML file or web page has been stored.

    For example,

    <body background="drkrainbow.gif">

    To obtain the correct path, save that file in C: or any other drive. After that obtain the correct path through the drop down box available at the top of the navigation window.Hope this information helps. And if it does, please mark my answer as the best one!! Happy programming!! :-)

  4. Hi,

    Documents from the documents & settings folder are privates.

    First put the image in the image directory on the sites folder, and access it

    <style>

    body:{

    background:  url(../images/imagename.jpg) no-repeat;

    }

    .. mean the root of the site.

    </style>


  5. You'd need to upload the picture to the internet to somewhere that can host it.   I recommend checking out photobucket.com  or for just a quick 'dump'  imageshack.us

    Take the direct url off either of those pics and it should work

    if you want to do this for an offline project the code would be file:\\\c:\documents and setting -file location here- .jpg)   easier though would just be <body background="file:\\\c:\location here">  and unless you needed it to repeat or anything that would do it.

Question Stats

Latest activity: earlier.
This question has 5 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.