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

3rd Mar 2017, 3:55 AM
Kelvine De Danielo
Kelvine De Danielo - avatar
3 odpowiedzi
+ 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.
3rd Mar 2017, 4:39 AM
Mallesh Techie
Mallesh Techie - avatar
+ 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
3rd Mar 2017, 4:00 AM
Chirag Bhansali
Chirag Bhansali - avatar
+ 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.
4th Mar 2017, 12:18 PM
LUCY AOKO OTIENO
LUCY AOKO OTIENO - avatar