I have a recurring element that should appear along the whole righthand side of each page — stretched from the very top to the very bottom. I found that by using a negative margin on the @right region I could achieve this effect:
However, when I went to tighten up the overall @page margins a bit, the effect stopped working:
Is there a more reliable way to get the @right region to overlap with the corner regions above and below it?
@page {
size: US-Letter;
@right {
margin: -0.75in 0;
padding: 0;
content: element(thermometer);
border: 1px solid blue;
}
}
However, when I went to tighten up the overall @page margins a bit, the effect stopped working:
@page {
size: US-Letter;
margin: 0.5in;
@right {
margin: -0.5in 0; // <--- acts as `margin: 0` instead :-(
padding: 0;
content: element(thermometer);
border: 1px solid blue;
}
}
Is there a more reliable way to get the @right region to overlap with the corner regions above and below it?
Edited by natevw