I used to think that everyone used relative paths (e.g. /styles/style.css). But I wonder why some popuar web designers (e.g. http://www.getfinch.com and http://31three.com/) use absolute paths (http://example.com/styles/style.css).
So basically I’m asking why some professional designers are using absolute paths instead of relative paths?
Both of those are using ExpressionEngine CMS, it’s probably the way the CMS links the stylesheets.
But really it’s just a matter of preference. Personally I go with root relative
/css/main.cssbecause this way if I’m developing locally + offline I don’t have to worry about switching the WEB_ROOT constant to a local one ( less hassle + shorter ).The only case I see for absolute is if the domain uses a CDN ( content delivery network ) and the domain is different from the origin domain.