combs
08-21-2002, 02:12 PM
I have some problem in HTML. I do not know how to set margins. I have set the margins I have set to 0 but at the time of printing the left margin shows 1 and top margin 2. How can I solve this?
![]() | View Full Version : Margins in HTML page combs 08-21-2002, 02:12 PM I have some problem in HTML. I do not know how to set margins. I have set the margins I have set to 0 but at the time of printing the left margin shows 1 and top margin 2. How can I solve this? Brewer 08-21-2002, 02:46 PM Inside the <body> tag insert leftmargin="0" topmargin="0" <body leftmargin="0" topmargin="0"> Hope that helps. cactus 08-21-2002, 03:30 PM <BODY BGCOLOR="#CCCCCC" LEFTMARGIN=0 RIGHTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0 > bgcolor=background color ... Change it to any color needed Regards chuckt101 08-21-2002, 04:48 PM At time of printing? That would be in your (i'm assuming your browser..) IE settings File->page setup Website Rob 08-21-2002, 09:21 PM Best Web page printing method I've found is: <body> <div align="center"> <table width="80%"> entire page </table> </div> </body> The above focuses only on the details and fleshing it out with valid code would need to be done of course. Works with any OS / Printer and your pages will always print nicely. Gotta like that! :D |