Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-26970

Custom PDF CSS stylesheet overriden

    XMLWordPrintable

Details

    Description

      If you change the font-size in your custom PDF stylesheets, when you export a page to PDF, it does not have any effect in the generated document. It must get overridden later as adding the attribute !important make it work.

      For example, this CSS does not have any effect in the generated PDF file.

      body {
         font-size: 6pt;
      }

      To make it work, you need ot add the important attribute, as the example bellow:

      body {
         font-size: 6pt !important;
      }

      This also happens for other parameters (i.e.: text-decoration).

      Custom CSS should not be overridden by default ones.

      Attachments

        Activity

          People

            shaffenden Steve Haffenden (Inactive)
            aconde Alejandro Conde Carrillo (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: