Problem With Background Images
5 posts 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:)
- Posts: 3
- Joined: Wed Jul 20, 2011 10:51 am
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
- Posts: 128
- Joined: Sun Jun 26, 2011 1:01 am
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.
- Posts: 3
- Joined: Fri Sep 16, 2011 11:38 am
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%.
- Posts: 4
- Joined: Wed Sep 21, 2011 5:13 am
Page 1 of 1