Syndicate content

css

css variables via php header()

At work we often need to host tons images from an alternative location, so as to not overwhelm our boxes with literally thousands of hits per second. This presents a small problem for the site that uses lots of css styling for background images. Since CSS currently doesn't support dynamic variables, a change to the alternative location url means changing lots of hardcoded paths. The question becomes, how do I pass in one value to my CSS document and echo it throughout, whereever an image call is made.