W3C home > Mailing lists > Public > www-amaya@w3.org > July to September 2009

Re: Background image excluding margins

From: José Carlos Santos <jcsantos@fc.up.pt>
Date: Thu, 13 Aug 2009 21:31:05 +0100
Message-ID: <4A847809.4000109@fc.up.pt>
To: www-amaya@w3.org
On 13-08-2009 20:01, Keith Rubow wrote:

> My tests indicate that if the CSS is applied to the html element, the 
> background image follows the specified margins. However, it the 
> stylesheet is modified to:
> 
> body {margin-left: 4% ; margin-right: 4% ; background-color: yellow ;
>  background-image: url(100x75.jpg) }
> 
> then the background image and background color is rendered all the way 
> to the left and right edges (with no margin), while the page content has 
> the margins. Interestingly, Amaya renders the background color over the 
> entire height of the page, but renders the background image only as far 
> down the page as the content of the page (text, etc.), which seems to be 
> different from most other browsers. Other browsers render the background 
> image over the entire height of the page. I had to change the background 
> color to see how it was rendered.

Quite right. Thanks to all who replied.

Best regards,

Jose Carlos Santos
Received on Thursday, 13 August 2009 20:31:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:30:57 UTC