Problem With Background Images
Page 1 of 1
Problem With Background Images
I 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 Images
Hi David,Just like this:
background:url('/site/graphics/logo.png');
- Andreas, HTML.net
--
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Show some love for HTML.net on Twitter, Facebook and Google: Use the buttons on top of all pages.
Re: Problem With Background Images
ya. 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--
~Chris
~Chris
Re: Problem With Background Images
As 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 Images
Hey 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