Hi, I've got a series of pages set up at A4 size with a 5mm bleed. I'm laying out page content in A4 sized page containers and position the content absolutely within the A4 page divs.
Each page div first contains a background image which is a div containing an inline SVG image. The background div is set to A4 plus bleed size and positioned negatively into the bleed area. The actual page content comes after and on top of the background div.
Now this renders correctly on the screen, but the PDF that Prince produces displays the SVG background on top of all the other content, despite appearing before that content in the markup. None of the elements have a z-index set to override default stacking order.
Manually setting z-index values does seem to fix this issue, but I'd prefer not to add z-index management into the mix if I can avoid it.
Each page div first contains a background image which is a div containing an inline SVG image. The background div is set to A4 plus bleed size and positioned negatively into the bleed area. The actual page content comes after and on top of the background div.
Now this renders correctly on the screen, but the PDF that Prince produces displays the SVG background on top of all the other content, despite appearing before that content in the markup. None of the elements have a z-index set to override default stacking order.
Manually setting z-index values does seem to fix this issue, but I'd prefer not to add z-index management into the mix if I can avoid it.