Search code examples
cssbackgroundattachmentmarginfixed

Margin 0 and fixed background cause weird border OR what?


I am currently developing this site: tochat.vn

As viewing in Firefox 7.0.1, it has annoying white border at top of the page. I have been trying to remove the border in many ways, but nothing really works.

Actually, there are 2 things I noticed,

  1. when I removed "margin: 0" on body tag (on reset.css)
  2. OR when I removed the "fixed" value of background-attachment of the "body" class (on style.css)

the border disappeared.

But I can't remove these attributes :(

Any suggestion?


Solution

  • These two posts seem to address similar issues, if not the issue itself:

    Side Note: I went to the mentioned link in FireFox 7.0.1 and did NOT see a space and the background was fixed. The background was flush with the top left corner.

    Did you fix the issue on the page that the link leads to? Is this a wordpress installation with a custom theme?