image as a background doesn’t fill all the page

I changed my html code with for the multi image background to work with Internet Explorer.

Since this change, I have a white border all around the page.

Did someone know why it doesn’t fill all the page like my previous version, and how I can fix it.

Old version : (works with all browsers except IE): http://brio.speedrunwiki.com/LA-MAYOCHE/LA%20MAYOCHE%20page%20accueil%20V001.htm

New version (Works with all browsers but doesn’t fill all the page): http://brio.speedrunwiki.com/LA-MAYOCHE/LA%20MAYOCHE%20page%20accueil%20V002.htm

Thanks a lot!

Answer

In your CSS do the following:

body { margin:0; }

Right now, you’ve got a browser default margin set (you didn’t set it, so the browser did).

Check out Eric Meyer’s CSS Reset. Utilizing a reset stylesheet will help prevent stuff like this from happening, and will also give you better control browser to browser.

http://meyerweb.com/eric/tools/css/reset/

Attribution
Source : Link , Question Author : user7719 , Answer Author : Dawson

Leave a Comment