Blue-sky printing There are many reasons for using Prince. We will show you 8. one: JavaScript Prince supports JavaScript so that programmers can achieve effects not possible in HTML and CSS along. For example, this document has a small script that au- tomatically generates a table of contents: JavaScript ..................... 1 More JavaScript .......... 1 CSS3 columns ............. 1 Styling pages ................ 1 CSS3 transforms .......... 1 Background images ..... 2 CSS3 selectors .............. 2 More transforms ......... 2 tw o: Mor e JavaScript This document l ists 8 numbered features. Notice t hat t he first t hree features are numbered wit h spelled-out numbers, while t he rest use d igits. This is achi eved wit h a small script t hat exchanges d igits for letters when t he number is t hree or smaller. thr ee: CSS3 columns This document is laid out in two columns on the first page. The next pages are more narrow and therefore only has room for one column. The number of columns is automatically adjusted based on the available width. 4: Styling pages The seco nd page of t his document is d ifferent from t he first: itÕs up- right and it has no background image. This is achi eved by styl ing pages in stead of elements. 5: CSS3 transf orms CSS3 introduces transforms, which can be used to scale and rotate elements. ÇPrinceÈ is rotated 90 degerees on the right. Also, it has been moved to a margin box so that it appears outside the normal text flow. 6: Backgr ound images The image o n t he right is used as t he background image o n t he first page. There, o nl y part of t he image is visible. This is achi eved by carefull y setting t he positio n and pixel-den sity of t he image. Also, notice how t he background image is Çbleed ingÈ; it extends sl ightl y outside t he page to avoid white edges when t he paper is cut. 7: CSS3 select ors Notice how every other item in our list of eight is in italics. This is achieved by selecting and styling even-numbered items. 8: Mor e transf orms T r an sforms can be appl i ed to images as well as text. Below is t he blue-sky background im- age rotated at various angles. Prince