While working on CSS styling for the body, I ran into a problem and was curious to understand the distinction.
Initially, I tried this
body {
background-image: url('img/bg.png');
}
However, it did not produce the desired result. http://www.w3schools.com/cssref/pr_background-image.asp
Then, I attempted the following:
body {
background-image: url('../img/bg.png');
}
Surprisingly, this worked perfectly. My assumption is that due to the file being in a folder, the '../' had to be used. Just wanted to confirm this with others before proceeding further.