I need to display a "tab" on the right side of all :first and :right pages. The tabs must be in the same position on all pages.
This is my mock HTML:
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head/>
<tab class="tab1">RG</tab>
<body>
<section>
<p>All my content</p>.
</section>
</body>
</html>
Unfortunately, :first and :right pages have different margins, so the CSS below causes the tabs to be at different positions depending on the page:
@page :first {
size: A4;
margin-top: 72mm;
@right-top {
content: element(rightTab);
}
}
@page :right{
size: A4;
margin-top: 32mm;
@right-top {
content: element(rightTab);
}
}
tab{
position:running(rightTab);
}
.tab1{
margin-top:50mm;
}
Is it possible to set a different value for margin-top depending on the page selector? For example, 50mm on :first pages and 90mm on :right pages?