Page 1 of 1

Print style sheets

Posted: Fri Jun 10, 2016 2:23 pm
by RSteinwand
I dropped my external print style ages ago and instead just added a @print block in my regular style sheet.

Then I ran into trouble with postloaded css using IE8 (which I loath having to support) where it would display everything as print layout, so back to the external style sheet, which fixes the problem. Modern browsers only download a print style sheet when needed and it's cacheable, so maybe I can tolerate it for now.

Anyway, I ran into these excellent links:

https://designshack.net/articles/css/6- ... ilerplate/
https://www.smashingmagazine.com/2015/0 ... -with-css/
https://www.smashingmagazine.com/2013/0 ... le-sheets/

Re: Print style sheets

Posted: Wed Oct 05, 2016 1:30 pm
by Albert Wiersch
I finally got a chance to look at all those links and ran the CSS through CSE HTML Validator. I was able to make some improvements for the upcoming v17 release.

Rock, if you don't mind, could you send me your print style sheet so I can see what further improvements I can make to CSE HTML Validator (if any)? Thanks!

Re: Print style sheets

Posted: Thu Oct 06, 2016 7:28 am
by RSteinwand
I glanced over the pages I linked to and I must say, there is lots of good content there... a lot of stuff I should be implementing. :roll:

I sent you an email with some css.

Re: Print style sheets

Posted: Thu Oct 06, 2016 8:18 am
by Albert Wiersch
Thanks Rick. I got it and plan to look at it soon.

UPDATE: I made some minor tweaks to the output based on the CSS documents that you sent. Thanks again!

Re: Print style sheets

Posted: Wed Nov 23, 2016 5:30 pm
by RSteinwand
Lots of good info about page breaks.

https://medium.com/@matuzo/i-totally-fo ... .oi05p0ws9

Re: Print style sheets

Posted: Tue May 16, 2017 1:46 pm
by RSteinwand
Just when you thought it was safe to go back in the water...

How do I create a printer friendly email newsletter