redhead
10-08-2002, 02:42 PM
Hello all.
I have a site which previously used 'marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"' in the body tag of its pages to kill the default margins. I ran this through the validator at w3 and was suprised to see that this wasnt "valid"
wanting valid code, i took out the offending code and replaced it with "margin: 0px 0px 0px 0px" in the css... and it worked fine in IE6 and (suprisingly) in NS6....
but the default margins were present in Mozilla1 and Opera6.05...
any suggestions of a way to get rid of the borders using CSS that will work in Mozzila1 and Opera6.05?
thanks :thumbsup:
I have a site which previously used 'marginwidth="0" marginheight="0" leftmargin="0" topmargin="0"' in the body tag of its pages to kill the default margins. I ran this through the validator at w3 and was suprised to see that this wasnt "valid"
wanting valid code, i took out the offending code and replaced it with "margin: 0px 0px 0px 0px" in the css... and it worked fine in IE6 and (suprisingly) in NS6....
but the default margins were present in Mozilla1 and Opera6.05...
any suggestions of a way to get rid of the borders using CSS that will work in Mozzila1 and Opera6.05?
thanks :thumbsup: