GitHub - DavidQL/Print-CSS-Sprites: jQuery plugin to make sprites printer-friendly · GitHub
Skip to content

About

jQuery plugin to make sprites printer-friendly

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

A jQuery plugin that turns CSS sprites into printable images. After including the source file, convert a sprite like this:

$('div.my_sprited_div').printSprite();

Some notes:

1. The correct image will be appended and automagically positioned.
2. If it contains any text (as an <h3> would, for example) that text will become a title attribute in that element.
3. The selected element will be emptied (if not already empty) and its text-indent property will be reset. You probably don't need to worry about this.

The plugin currently has support for JPG, PNG, and GIF image types. This works on all modern browsers, IE7-8, and (mostly) IE6.

About

jQuery plugin to make sprites printer-friendly

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages