I\'m splitting up one of my larger apps and introducing a \'cdn\' url to house common objects like CSS, javascript, and images to avoid duplication. What I need to do, though, i
Use relative paths, not absolute paths. When inside a CSS file, the path is relative to the CSS file and not the HTML page.
If your CSS file is here
http://cdn.example.com/css/style.css
And your class is
.cool-button { background-image: url('../images/button.png'); }
Then the browser will attempt to load the image from
http://cdn.example.com/images/button.png