I have margins for page: @page { margin-left: 5px; margin-right: 200px; }
Also in my doc I have header (@top-center { margin-left: 5px; margin-right: 5px;}) and footer (@bottom-centre with the same margins). But in result I received margins for header and footer margin-left: 5px + 5px = 10px and margin-right: 200px+5px = 205px. It is not that I want. How can I reach needed result?
does not work for me if I add margins to HTML element directly, they will be applied relative to the margins specified in the @page ("!important" also not to override them).
I could, but I need to apply margins for @page element BECAUSE I use some side panel (with the help of @right-top and @left-top elements) and I need to have enough space for them. If I keep margin for @page 5px, I guess I loose my side panel (for example right panel) for which I needed 200 pixels of space (exclude header width).