+ 1

How can I set an image from my gallery as a background- image? Anyone please do help me.

even after copy pasting the name of required image inside the src am not getting the expected output.

30th Sep 2017, 6:08 AM
Akshatha K N
Akshatha K N - avatar
5 odpowiedzi
+ 5
but in html not in css, for images stored offline you can use url i.e. url("storage-path") but in SL, you can't add images that are stored offline
30th Sep 2017, 8:22 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
Upload it online then use that link
30th Sep 2017, 6:18 AM
Kartikey Sahu
Kartikey Sahu - avatar
+ 3
@Akshatha what @Kartikey meant was to assign the url (link) of the uploaded file into the src property of the img tag, or through the CSS as your example :)
30th Sep 2017, 8:24 AM
Ipang
+ 2
body { background-image: src("storage/emulated/0/Download/huge.100.504901.JPG "); }
30th Sep 2017, 6:20 AM
Akshatha K N
Akshatha K N - avatar
+ 2
Shouldn't I use src instead of url??? src directs the path in which it is stored right?
30th Sep 2017, 6:21 AM
Akshatha K N
Akshatha K N - avatar