<!-- quirks mode --> <script> if (window.testRunner) testRunner.setPrinting(); </script> <style> body { margin: 0; border: solid hotpink; } </style> There should be a border around the entire page area, not just around this piece of text.