1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<!DOCTYPE html> <head> <style> @page { size: A4; margin: 0; } body{ margin:0; } div{ height: 200px; width: 200px; background: blue; margin: auto; } </style> </head> <body> <div></div> </body>