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):

New version (Works with all browsers but doesn’t fill all the page):

Thanks a lot!


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.

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

Leave a Comment