Re: Background image excluding margins

José Carlos Santos <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.