Hi, I have applied a background to the header margin area and diverted a div from the normal flow to fill the header which has a different background applied. When the page is rendered to PDF the background of the header margin extends right to the top of the page, but the background of the header div does not. There is a small gap of a few mm between the two.
I am aware that the element which is being diverted to the header area will loose many of it's properties in the conversion, so I have wrapped my header element in a container div and diverted that container into the header margin so the header div inside retains all it's CSS properties.
I have no margins or padding on these elements, and I have tried applying a blanket rule of
I am aware that the element which is being diverted to the header area will loose many of it's properties in the conversion, so I have wrapped my header element in a container div and diverted that container into the header margin so the header div inside retains all it's CSS properties.
I have no margins or padding on these elements, and I have tried applying a blanket rule of
* { margin: 0; padding: 0; }
to the CSS, but the gap persists. It does not respond to changes in the base font size.