CSS back slash and forward slash in 'calling' out photos from directories


This cursor css code that uses back slash for directory generates net::ERR_FILE_NOT_FOUND

cursor: url("C:\Users\Ken\projects\JavascriptGames\images\bird.png"), auto;

This cursor css code that uses forward slash for directory successfully customizes the cursor

cursor: url("C:/Users/Ken/projects/JavascriptGames/images/bird.png"), auto;

Why is it like that?


Because URL syntax is not the same as Windows filepath syntax. The path separator in URLs is / (as is the directory seperator character in UNIX and UNIX-like filesystems).

Answered By – Quentin

Answer Checked By – Jay B. (AngularFixing Admin)

Leave a Reply

Your email address will not be published.