-
Notifications
You must be signed in to change notification settings - Fork 154
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
extending base.html - styles not applied to pdf #137
Comments
Check if the path ({% static 'prj_name/custom.css' %}) is correct. |
Hi @unrealsolver, thanks for your answer. Actually I'm wrong, and css is taken into consideration (text is formatted accordingly and bootstrap's formatting is applied as well). I still get a grey background though; any idea about that? when I call |
I'm extremely confused .. it seems static assets works fine since images are correctly displayed, external and local css included as well.. just, some css properties works, and other don't. given in custom.css: and: I get a big, black (???) text on a grey (???) background ... |
damnit, got it working with a bunch of |
Hi, I'm trying the following w/o any luck:
urls.py
my_template.html
custom.css
base.html
If I browse http://localhost:8000/pdf/?as=html I can see all the stylings, but I lose them in the pdf (here attached as example). What am I doing wrong? If I inline all stylings, it works fine, but I'd prefer to use my custom.css file.. Thanks!
my_pdf (1).pdf
The text was updated successfully, but these errors were encountered: