Skip to content

Instantly share code, notes, and snippets.

@siddhpant
Created October 2, 2020 15:49
Show Gist options
  • Save siddhpant/a4483f6c301e5994e8b917b922102246 to your computer and use it in GitHub Desktop.
Save siddhpant/a4483f6c301e5994e8b917b922102246 to your computer and use it in GitHub Desktop.
Typora change page margins on PDF export
@media print {
#write{
max-width: 100%;
}
@page {
size: A4;
margin-left: 0;
margin-right: 0;
}
}
@siddhpant
Copy link
Author

This is obsolete now. In new version, you can go to PDF export settings and change the margins.

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