When it comes to CSS, the following rule applies:
Partial URLs are interpreted relative to the source of the style sheet,
not relative to the document.
But here is my problem:
I have different sites that use the same CSS file. Although they use the same layout, the actual images of the CSS links are different for each of them.
Exemple:
#header {
width: 960px;
height: 200px;
background: url(/images/header.png);
}
Each domain has its own "images" folder and its own "header.png", which I would like CSS to reference. Currently, it behaves as it should, and tries to find the png file in the domain where the CSS is located. I want him to get the png file from the domain where the CSS file was called.
I use a "link" for style sheets because "@import" breaks progressive rendering in IE.
Any suggestion or workarounds?