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@[206.245.203.103]>
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
unclear.

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
mailto:fahrner@pobox.com
http://www.verso.com/

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:50 GMT