+ 2

how to set up background-image

i tried everything single and doble quotes, backslash forward slash

25th Sep 2018, 8:35 AM
Vivek Garg
Vivek Garg - avatar
7 ответов
+ 4
example css: body{ background-image: url("http://www.sololearn.com/uploads/css_logo.png"); }
25th Sep 2018, 8:41 AM
KrOW
KrOW - avatar
+ 1
right one:- body {background-image: url ("///F:/photos/vivek/rock.jpg");} it will use forward slash(/) after "F:" not backward slash\
9th Oct 2018, 12:32 PM
Vivek Garg
Vivek Garg - avatar
0
in? Html or CSS?
25th Sep 2018, 12:35 PM
Joshua Martin Fontanilla
Joshua Martin Fontanilla - avatar
0
KrOW Your code is Right 😀
25th Sep 2018, 12:36 PM
Joshua Martin Fontanilla
Joshua Martin Fontanilla - avatar
0
If you try to do that with smartphone, I think all the time it may not work!! You should use the Dropbox method for uploading image or background image from your smartphone! https://www.sololearn.com/discuss/1054246/?ref=app
25th Sep 2018, 12:51 PM
AL Araf
AL Araf - avatar
0
what is fault in this: body {background-image: url ("///F:\photos\vivek\rock.jpg");}
26th Sep 2018, 8:12 AM
Vivek Garg
Vivek Garg - avatar
0
Try without quotes. i.e. background:url(https://image.png). works for me .
26th Sep 2018, 4:59 PM
xpnvdo
xpnvdo - avatar