Problem With Background Images
Page 1 of 1
Problem With Background ImagesI was reading the HTML tutorial of CSSS and I came across this code:
<body style="background-image: url('http://www.html.net/logo.png');">
This is very good for taking an image off a website but what if I want to add an image from a folder. What command would be used then?
Thanks in advance for the help:)
Re: Problem With Background ImagesHi David,
Just like this:
- Andreas, HTML.net
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Re: Problem With Background Imagesya. an easy way to find the url of the pic in one of your folders is to view the pic in your browser then just copy thet url. thats what i do
Re: Problem With Background ImagesAs long as your image is saved in the same location as your html file the following example should work fine:
<body background="name of image.jpg">
or .png/gif etc.
Re: Problem With Background ImagesHey Hello,
there is a simple solution for you, you can call image in your designing page or you can take path which is in your desktop for your image.it will work 100%.
Page 1 of 1