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

background-image scaling (CSS)

From: Dan Corkill <cork@agate.bbtech.com>
Date: Mon, 10 Nov 1997 16:43:06 -0500 (EST)
Message-Id: <199711102143.QAA15682@agate.bbtech.com>
To: www-style@w3.org

BODY {background-image: url(images/background.jpg);  /* 150x400 image */
      background-repeat: repeat-y;
      background-color: white;}


When printing a background image, both NS 4.03 and IE4.0, maintain the
resolution of the image (JPEG in this particular case) rather scaling
the image to maintain the proportions shown on the screen.  So, for
example, the image that covers the leftmost 150 pixels of the screen,
also only covers the leftmost 150 pixels of the printed document (a
very narrow bar at 1200dpi!).

If this is the behavior intended by the CSS specifications (I
can imagine situations where this is desired), scaling the
image would seem to be the desired behavior in the majority of
cases.  (At 1200dpi, the details in the image are too small to
be seen!)

Is there any solution to this situation?  Does CSS need a
background property to enable/disable proportional scaling?
Any advice welcomed.

-- 
Dan Corkill                                              cork@bbtech.com
Blackboard Technology                              http://www.bbtech.com
401 Main Street                                   Phone: +1 413 256-8990
Amherst, MA  01002                                Fax:   +1 413 256-3179
Received on Monday, 10 November 1997 16:43:29 GMT

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