0
hw do i insert a background image?
hello again, this one has been a problem to me( making backgrounds), i'd like to know.. how do i insert a path for the background image in css...i have seen something like url(../../images/image.png)...t doesn't work, my image is in the downloads folder, in jpg format
3 ответов
+ 9
Syntax :-
background-image: url(imagename.extension);
Example :-
background-image: url( image.jpg );
make sure that the image must be near to HTML file or put the HTML file and IMAGE in one folder.
+ 6
The syntax is as follows:
background-image: url(imagepath.extension);
Make sure the path is absolutely correct and try to keep it near your HTML file and not some random location in the computer
+ 4
It has been challenging to me too, but now its very easy, you need to ensure the image you are to use in in the Image folder and saved either in JPG,PNG or GIF.
eg. background-image: url(images/favicon.jpg)...whereby the images is the folder, favicon is the name the image is given.