Relative Path's for background-image URL

Hey guys, can anyone help me understand why only the first url path is working?
No description
11 Replies
DoContra
DoContra•14mo ago
mano quando colocas dois pontos antes de qualquer direcao de ficheiro podes escolher o caminho dele
Jochem
Jochem•14mo ago
I appreciate you helping out, but please keep things in English so others can learn from it too
Almopt
AlmoptOP•14mo ago
what is the difference between using "../" and using "./" it's not the same?
DoContra
DoContra•14mo ago
try put background-image:url(../ ) and after ctrl + space and go show you all the options you can choose
Almopt
AlmoptOP•14mo ago
normaly I use that with "./" instead of "../"
Jochem
Jochem•14mo ago
./ describes the current folder, ../ describes the parent folder
DoContra
DoContra•14mo ago
you are not portuguese ?
Almopt
AlmoptOP•14mo ago
yes I am, but @Jochem asked us to speak in english Sporting crl! 😄
DoContra
DoContra•14mo ago
hahaaaha okok xD nada disso tas a estudar onde ? para precisares de html
Almopt
AlmoptOP•14mo ago
manda dm
clevermissfox
clevermissfox•14mo ago
you can add all your bg images to one tag too, background-image: url(../a.jpg), url(../b.jpg), url(..c.jpg);

Did you find this page helpful?