Reputation: 185
background-image: url("../images/intro-1.jpg");
In the above piece of CSS code, I am having trouble figuring out why that ..
is used.
Upvotes: 0
Views: 35
Reputation: 2093
This is used to get out of current or access parent directory:
./
means current directory../
means parent directoryHave a look at Paths explained: Absolute, relative, UNC, and URL.
Upvotes: 2