Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
[SOLVED] dw2pdf: creating a print style sheet that exports table header grey background
Avatar
dobunzli #1
Member for 3 months · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: [SOLVED] dw2pdf: creating a print style sheet that exports table header grey background
Hello,

I wish to be able to print on the exported pdf the grey background of Dokuwiki's header table
See https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/issue….

I have read the documentation, but my knowledge is not enough good to achieve this. I imagined that I have to modify the lib/plugins/dw2pdf/tpl/newtemplate/style.css file

But what do I have to add ?
Adding something like this doesn't work:

td.pdf {
    text-align:center;
    background:grey;
    color:black};
}

Can someone help me ? Thanks in advance
This post was edited on 2019-04-20, 18:21 by dobunzli.
Avatar
dobunzli #2
Member for 3 months · 4 posts
Group memberships: Members
Show profile · Link to this post
Hello,

Just in case, adding the following code in the lib/plugins/dw2pdf/tpl/newtemplate/style.css file did the trick.


th {
    text-align: left;
    background-color: #eeeeee ;
}
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-07-17, 12:45:42 (UTC +02:00)