+ 6

HELP?

i've coded these body{ font-family: Florence, cursive; background-image: url("C:\Users\Me\Documents\pic.jpg"); background-color: #e9e9e9; } but the image doesn't show. help? i'm using notepad++ with chromium browser

16th May 2017, 1:36 PM
¤ rookie ¤
¤ rookie ¤ - avatar
6 Antworten
+ 3
try change to this... file://C:/Users/Me/Documents/pic.jpg
16th May 2017, 1:40 PM
Calviղ
Calviղ - avatar
+ 5
@Calvin thank you so much! it's working now! so it means! if it's in my comp i should use the opposite slash? i think that's how it will work
16th May 2017, 1:46 PM
¤ rookie ¤
¤ rookie ¤ - avatar
+ 5
@Calvin and now that I know. thank you so much! hehe
16th May 2017, 2:43 PM
¤ rookie ¤
¤ rookie ¤ - avatar
+ 4
If you're not sure about how to get the local image url, just drag your image file to browser, you will get the url link from the address bar.
16th May 2017, 1:45 PM
Calviղ
Calviղ - avatar
+ 2
For url or any network links, you need to use forward slash, which is different from Windows backward slash.
16th May 2017, 1:51 PM
Calviղ
Calviղ - avatar
0
There is no ( needed here and if that don't work then name the picture like test_1 so you can call it
16th May 2017, 3:17 PM
kellen
kellen - avatar