+ 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.
5 Réponses
+ 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
+ 3
Upload it online then use that link
+ 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 :)
+ 2
body {
background-image: src("storage/emulated/0/Download/huge.100.504901.JPG ");
}
+ 2
Shouldn't I use src instead of url??? src directs the path in which it is stored right?