Browse Source

add css to break pages when creating pdfs

David 8 years ago
parent
commit
4400cc9948
1 changed files with 16 additions and 0 deletions
  1. 16 0
      styles.css

+ 16 - 0
styles.css

@@ -1,3 +1,6 @@
+* {
+  overflow: visible !important;
+}
 body {
   margin: 0;
   font-family: 'Raleway', sans-serif;
@@ -139,3 +142,16 @@ h6.skill-class {
   margin-top: 10px;
   margin-bottom: 5px;
 }
+
+@media print {
+  .new-page {
+    page-break-before: always;
+    page-break-after: always;
+    page-break-inside: always;
+  }
+  .experience-wrapper {
+    page-break-before: avoid;
+    page-break-after: avoid;
+    page-break-inside: avoid;
+  }
+}