W3C home > Mailing lists > Public > www-style@w3.org > July 1997

beef with CSS-specified image URLs

From: Todd Fahrner <fahrner@pobox.com>
Date: Sun, 27 Jul 1997 18:14:20 -0700
Message-Id: <v03102807b0019da9c668@[]>
To: www-style@w3.org
When specifying an image in CSS (say, a background image, or a list-item
marker), the URL given in the stylesheet is relative to the HTML document,
not to the stylesheet, at least as implemented in NS4. The specification is

I think CSS-specified image URLs should be relative to the stylesheet,
instead. Think about it: with HTML documents distributed across directories
and networks, it is now impossible to maintain a central stylesheet with
any image references. It is only a half-solution to use absolute reference,
as this is fraught with the same maintenance and portability compromises as
in HTML.

I haven't played with @import yet within stand-alone CSS files. I assume
URLs within these will refer relatively to the CSS document?

Todd Fahrner

The printed page transcends space and time. The printed page, the
infinitude of books, must be transcended. THE ELECTRO-LIBRARY.

--El Lissitzky, 1923
Received on Sunday, 27 July 1997 21:03:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:44 UTC