I have set a header to static and I would like to set a bottom margin on that static header, so content begins a certain number of pixels from the top. However, adding "margin-bottom" static element has no effect, and adding "margin-bottom" to @top break the content and layout of the static header element. Can anyone help me with this?
I have attached the PDF. Look at the last two pages, the margin above the header on the first two pages com from something else.
The CSS:
@page {
margin-left: 0;
margin-right: 0;
@top {
margin: 0;
padding-top: 10px;
/*margin-bottom: 28px;*/
content: flow(header);
}
}
.header {
flow: static(header);
padding-top: 18px;
padding-bottom: 18px;
padding-left: 48px;
overflow: hidden;
margin-bottom: 28px;
}
I have attached the PDF. Look at the last two pages, the margin above the header on the first two pages com from something else.
The CSS:
@page {
margin-left: 0;
margin-right: 0;
@top {
margin: 0;
padding-top: 10px;
/*margin-bottom: 28px;*/
content: flow(header);
}
}
.header {
flow: static(header);
padding-top: 18px;
padding-bottom: 18px;
padding-left: 48px;
overflow: hidden;
margin-bottom: 28px;
}