Quote from: zi at Feb 24, 2011, 11:23 PM
Bob! you won! 
I took touch-typing in school. My parents made me do it during the summer and I complained bitterly. I was the only guy in the class, which should have been a plus, but wasn’t. It was one of the only things they ever truly forced me to do. They said I’d be grateful later and boy am I.
@PhotoWebMax: The paths in a CSS file are an odd case. If you use a relative URL in a CSS file, it’s always relative to the location of the CSS file. I learned that from Sottwell, and before I did, I used to hard-code in the full URL. Remember that it’s a URL, not a file path -- that’s another mistake that can keep up up all night.
Here are your two URLs:
Image: http://localhost:8888/nutricompounds/assets/templates/nutricompounds/images/banner.jpg
CSS File: http://localhost:8888/nutricompounds/assets/templates/nutricompounds/css/styles.css
You’re in the second one when the background image URL is processed, so .. translates to the directory above the current directory (CSS/), which is:
http://localhost:8888/nutricompounds/assets/templates/nutricompounds
../.. would be:
http://localhost:8888/nutricompounds/assets/templates
../../.. would be:
http://localhost:8888/nutricompounds/assets
The trick is to go up to a directory that is a parent of both files, in this case .., which is:
http://localhost:8888/nutricompounds/assets/templates/nutricompounds
and then add the rest of the path down to the image file, so:
http://localhost:8888/nutricompounds/assets/templates/nutricompounds + /banner/images/banner.jpg
or
../banner/images/banner.jpg
Which is the same thing.
Now you have the URL that worked from the browser address line.