Forum Moderators: phranque

Message Too Old, No Replies

Margins

Can't validate pages

         

Serio

1:35 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



When I use the following - TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" - I cannot validate the code. I know it's probably something simple - but I dont know how to do it - any help appreciated.

encyclo

1:57 pm on Jul 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can replace them with CSS:

body { 
margin:0;
padding:0;
}

The marginheight attribute and the others are non-official extensions to the HTML standard, and won't ever validate - however, all browsers support them well.

Serio

2:07 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



Thanks for that - works a treat - simple too.