I'm having trouble adjusting the margin sizes on a page in Internet Explorer 11 Print Preview. I also want to remove any content from the margins (such as page numbers, titles, URLs, etc).
I've successfully set the margin size, but I can't seem to clear the content. Here's my code - can anyone spot what I might be doing wrong? Once I figure out the issue with the top margin, I'll apply the fix to the others.
<!DOCTYPE HTML>
<html>
<head>
<title>Print Test</title>
<style type="text/css">
@page {
margin-top: 50mm;
margin-bottom: 50mm;
margin-left: 50mm;
margin-right: 50mm;
@top-left-corner {content: none}
@top-left {content: none}
@top-center {content: none}
@top-right {content: none}
@top-right-corner {content: none}
}
</style>
</head>
<body>
<h1>Header Here</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</body>
</html>