From 521770ab6c3e454b01378dd2e5fe77c633f21116 Mon Sep 17 00:00:00 2001 From: Fabrice Niessen <(concat "fniessen" at-sign "pirilampo.org")> Date: Tue, 12 May 2015 20:49:46 +0200 Subject: [PATCH] Set explicit CSS margins while printing HTML page --- styles/readtheorg/css/readtheorg.css | 7 +++++++ styles/readtheorg/readtheorg.org | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/styles/readtheorg/css/readtheorg.css b/styles/readtheorg/css/readtheorg.css index fa936e4..5e03021 100755 --- a/styles/readtheorg/css/readtheorg.css +++ b/styles/readtheorg/css/readtheorg.css @@ -209,6 +209,13 @@ dl dd{ @media print{ #table-of-contents{ display:none} + + @page{ + size: auto; + margin: 25mm 25mm 25mm 25mm;} + + body { + margin: 0px;} } @media screen and (max-width: 768px){ diff --git a/styles/readtheorg/readtheorg.org b/styles/readtheorg/readtheorg.org index d72dca7..7732bf4 100755 --- a/styles/readtheorg/readtheorg.org +++ b/styles/readtheorg/readtheorg.org @@ -275,6 +275,13 @@ dl dd{ @media print{ #table-of-contents{ display:none} + + @page{ + size: auto; + margin: 25mm 25mm 25mm 25mm;} + + body { + margin: 0px;} } #+end_src