Many developers are usually tasked with removing all the ink-heavy images and graphics of a website so that they can print their page looking as close to a Word document as possible. My challenge was different. My clients wanted to print the website as it is seen on screen.
Now because it was a CSS-related problem, you would assume that the designer would be tasked to fix it. Wrong!
I was informed that they had been trying to fix this printing problem since the website was redesigned in very cool CSS and if I was able to solve this I would be a star! Not one to back out from a challenge - I googled the terms “printing CSS websites” and got this article from A List Apart.
I read the first few sentences, looked at the website’s CSS code and wondered if adding “, print” to the media attribute of the CSS link would help. Yup, all it took was “, print” to get me to rock star status today. What a way to end the work day!