New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font-size is ignored #404

multicore-association opened this Issue Nov 2, 2018 · 2 comments


None yet
3 participants

multicore-association commented Nov 2, 2018

I added

<style> body {font-size: 14px;} p {font-size: 14px;} </style>

to my html file but it ignores it.
How do I change font-size?


This comment has been minimized.


spipu commented Nov 4, 2018

Normally it works. Look at example.

Be carefull, body tag does not really exist on html2pdf, look at the page tag documentation


This comment has been minimized.

DubbleClick commented Nov 13, 2018

Since the body tag doesn't exist, you can do:

* {
    font-size: 14pt;

p {
    font-size: 10pt;

and override it whereever you want, such as above in the


@spipu spipu added the help wanted label Nov 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment