Maybe I'm missing something obvious here. I'm trying to implement our CI requirements and these documents require to put something on top of every page. For simplicity, we could say we need a black box from outer left edge to the page middle and a red box from the right outer edge to page middle. Both boxes are 10mm high and need to be repeated on every page.
I've tried doing something like
however, this doesn't work, since the boxes seem to protrude into main flow and thus actually respect page margins etc.
I assume it might be possible using static() and flow(), but maybe there is another way to implement this?
I've tried doing something like
@page {
@top-right {
margin: 0;
padding: 0;
right: 0mm;
top: 0;
width: 105mm;
height: 10mm;
position: absolute;
content: ' ';
background-color: red;
display: block;
}
@top-left {
margin: 0;
padding: 0;
left: 0mm;
top: 0;
width: 105mm;
height: 10mm;
position: absolute;
content: ' ';
background-color: black;
display: block;
}
}
however, this doesn't work, since the boxes seem to protrude into main flow and thus actually respect page margins etc.
I assume it might be possible using static() and flow(), but maybe there is another way to implement this?