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
Print size problem #42
Comments
Hi @tuperhero , i did some tests and found the problem. Libraries like bootstrap set min-width in body to 992px (what makes the overflow), try this (defined after bootstrap and styles in head): <style>
@page {
size: A4;
margin: 0;
}
body {
min-width: initial !important;
}
</style> worked for me 😉 |
@andersou wow that worked like a charm. Thanks so much I spent ages trying to figure it out, didn't even occur to me that Bootstrap could be getting in the way. Cheers ! |
This one helped me
|
I'm seeing this issue despite not using any other CSS framework, and nothing I do seems to make any difference. Any pointers on things I should be specifically looking at? |
Hi. Great snippet. Might be missing something though, when printing a page using the A4 style, it comes out about 2/3 of the size of the page. Tried across multiple browsers and OS. Any ideas ?
The text was updated successfully, but these errors were encountered: