CSS Backgrounds in PDF Export

dyorke's Avatar


13 Sep, 2011 09:05 PM

My custom CSS makes use of background images. When I export to PDF these images don't show. How can I show them?

  1. Support Staff 1 Posted by Brett on 13 Sep, 2011 09:16 PM

    Brett's Avatar

    The next version of Marked will allow printing (and PDF export) of background images. For now, you can achieve most of the same effects using the before: and after: psuedo-selectors.

    h2:before {
    padding-right: 5px;
    content: url(../pix/logo_ppk.gif);

    Hope that helps, new version on the way soon!

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac