Relative URIs within CSS

We made an important discovery today which will help us simplify the maintenance and version control of the style sheets for Wired News. It has to do with importing additional CSS files and referencing images from within any CSS file. Since I’m the original and final author of the CSS files, I like to keep a local working version of the design prototypes on my laptop. I was originally referencing URIs in the CSS using absolute paths, relative to the web server root — ie: url("/wired/images/logo.gif"). For the live site, we’ll be hosting both images and CSS files on Akamai servers, which obviously means I won’t be able to keep the same URI references in each of the CSS files. continued

Latest tweets


Stopdesign is hosted on a Virtual Private Server at Dreamhost. Whether you go with a shared hosting plan, or with a VPS, Dreamhost is one of the simplest, easiest, and most affordable web hosts in existence.