Print style sheets

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Post Reply
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Print style sheets

Post 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/
Rick
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Print style sheets

Post 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!
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Print style sheets

Post 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.
Rick
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: Print style sheets

Post 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!
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Print style sheets

Post by RSteinwand »

Lots of good info about page breaks.

https://medium.com/@matuzo/i-totally-fo ... .oi05p0ws9
Rick
User avatar
RSteinwand
Rank VI - Professional
Posts: 596
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND
Contact:

Re: Print style sheets

Post by RSteinwand »

Just when you thought it was safe to go back in the water...

How do I create a printer friendly email newsletter
Rick
Post Reply