I have a page with nothing inside but this CSS:
body
{
margin:0px;
padding:0px;
border:0px;
background-color:black;
}
It is supposed to hide all borders on the page.
When I use !DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” or don’t use DOCTYPE at all, it works fine in all browsers. When I use !DOCTYPE html, it works in all browsers but IE.
Any ideas why?
Update: I’m not sure why but I don’t see borders on the production site, only locally. The code is the same here and there…
I figured. My IE was running in compatibility mode for local site.