I use a rule
@page:left {
@top-left {
content: counter(page);
vertical-align: bottom;
color: white;
background: gray;
...
}
...
}
to make page numbers with a gray background. I am asked to format for letter size paper but with margins
@page {
margin: 1.5in 1.25in 1.5in 1.25in;
}
What can I do so that the background color doesn't escape those margins (see screenshot for what I don't want).
@page:left {
@top-left {
content: counter(page);
vertical-align: bottom;
color: white;
background: gray;
...
}
...
}
to make page numbers with a gray background. I am asked to format for letter size paper but with margins
@page {
margin: 1.5in 1.25in 1.5in 1.25in;
}
What can I do so that the background color doesn't escape those margins (see screenshot for what I don't want).