From 96034f548bb94ab51af58e8cac1261d01350cc6d Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 28 Jan 2016 14:07:06 -0500 Subject: [PATCH] testing page breaks for printed elements --- css/app.css | 8 +++++--- scss/_wordpress.scss | 11 ++++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/css/app.css b/css/app.css index 473a651..4a7ea47 100644 --- a/css/app.css +++ b/css/app.css @@ -6209,9 +6209,11 @@ img.alignleft { #addthis_wrapper, #copyright, #respond, #blog-side-info-wrapper, #footer_address, #action-items, #crumb-line, .no-featured, aside, header, nav, footer { display: none; } #blog-posts-over, #blog-posts-over p { - page-break-before: auto; - page-break-after: auto; - page-break-inside: avoid; } } + page-break-before: always; } + img { + page-break-before: always; } + h1, h2, h3, h4, h5, h6 { + page-break-before: always; } } h1, h2, h3, h4, h5, h6 { clear: both; } diff --git a/scss/_wordpress.scss b/scss/_wordpress.scss index 1af3725..932cf6b 100644 --- a/scss/_wordpress.scss +++ b/scss/_wordpress.scss @@ -237,10 +237,15 @@ img.alignleft, img.alignright, img.aligncenter, img.alignnone, div.wp-caption im display: none; } #blog-posts-over, #blog-posts-over p{ -// margin-top: -300px; - page-break-before: auto; - page-break-after: auto; page-break-inside: avoid; + page-break-before: always; } + img{ + page-break-before: always; + } + h1, h2, h3, h4, h5, h6{ + page-break-before: always; + } + } // End Search and Posts -- 2.17.1