Forum Moderators: open

Message Too Old, No Replies

topmargin="0" etc. not vailid in HTML Trans.

         

perryc20

8:23 pm on Mar 22, 2005 (gmt 0)

10+ Year Member



On all of my websites I have the normal margin script

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" bgcolor="#000000">

However when I try to validate my HTML it comes up with an error message: not Valid HTML 4.01 Transitional

What script would I use that would be valid and also give me no margins in all browsers that works like the above.

It also seems the background image also gives me this problem.

Thanks
Chad

MWpro

8:32 pm on Mar 22, 2005 (gmt 0)

10+ Year Member



The easiest way would be to use CSS.

If you don't know anything about CSS, strip the body tag and put this in the head of the document.


<style type="text/css">
body {
margin: 0;
padding: 0;
background: #000;
}
</style>