• Resolved Scott

    (@sstracy)


    Hello,

    I am trying to include background images via CSS with my packing slip PDFs. However, background-image seems to not appear within a rendered PDF, similar to how printers sometimes do not print background images. Is there a way to make sure these background images are generated within the PDF file?

    Alternatively, I have found that I can use the pseudo :before class with content:url() (and position:absolute) to display the image but I seem to be running into issues controlling the image size while using this solution.

    Any help with this would be appreciated!

    -Scott

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Scott,
    You can do this with a div + img tag and position: fixed (absolute also works but doens’t repeat on every page) . If you put this on the top of your document that you don’t need to work with any pseudo elements or background images and you have full control over the size & positioning with CSS.

Viewing 1 replies (of 1 total)
  • The topic ‘background-image’ is closed to new replies.