I'm trying to set the margins on a page that I am printing. In chrome, it looks great. IE not so much. I'm trying to set the margins like so:
@media print {
@page {
margin: -0.5cm;
margin-left: -1.5cm;
margin-right: -1.5cm;
}
}
I'm referencing the css file like this in the head:
<link rel="stylesheet" href="Content/print.css" type="text/css" media="print">
I'm able to adjust the margins just fine in chrome by tweaking the margin values, but in IE11, it seems to be completely ignoring this....
What am I doing wrong?
The @page selector does not need to be nested, since the page context is assumed:
Negative margins are user-agent specific:
In addition, the CSS grammar does not define the behavior of nested at-rules.