Wednesday, May 27, 2015

Replacing images when printing

It isn't all that uncommon that, after you've polished your print stylesheet to make a site look well on paper as well as on screen, you realise that the logo really doesn't look its best. It may look blurry or pixelated on paper due to having a pixel density intended for screen viewing, of course. But even worse, its edges may look ugly or it may actually be invisible because whatever is behind it when viewed on screen isn't printed.

Applying a background colour to the logo image or its containing element in the print CSS isn't going to help either since most browsers by default do not print backgrounds at all. If you can't change the image used for screen so that it will look good in print as well, you need to somehow make browsers use a different image when printing. One way of doing that is by using CSS generated content.

Read full post

Posted in .

Copyright © Roger Johansson


456 Berea Street

Здесь можно оставить свои комментарии. Выпуск подготовленплагином wordpress для subscribe.ru

No comments:

Post a Comment