By default, Web browsers put some extra whitespace between the browser interface and the start of the page. This comes in handy when you have a text-only Web page, but many types of designsespecially liquid layoutsdon't feel right with the extra padding.
|
You can turn off the extra padding by setting a couple of attributes in the body tag to 0. Which attributes you use depends on the browser. In Internet Explorer, the appropriate attributes are leftmargin and topmargin:
<body leftmargin="0" topmargin="0">
In Netscape browsers, the attributes are marginwidth and marginheight:
<body marginwidth="0" marginheight="0">
If you're smart, you'll use all four:
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
Topic 26).