Learn Javascript Tutorials, CSS Tutorials, HTML Tutorials and jQuery Tutorials

Learn CSS, HTML, JavaScript, jQuery and Ajax step by step from beginning to advance with examples and references. Apart from that, beginners can learn tricks and tips.more>>

Friday, October 26, 2007

Print Using CSS

Printing HTML documents has always been problematic. In CSS2 the print properties are added to make it easier to print from the Web.





































Property



Description



Values



orphans



Sets the
minimum number of lines for a paragraph that must be left at the bottom of a
page



number



marks



Sets what
sort of marks should be rendered outside the page box



None, crop
,cross



page



Sets a
page type to use when displaying an element



Auto ,identifier



page-break-after



Sets the
page-breaking behavior after an element



Auto ,always,
avoid, left, right



page-break-before



Sets the page-breaking
behavior before an element



Auto, always,
avoid, left, right



page-break-inside



Sets the
page-breaking behavior inside an element



Auto, avoid



size



Sets the
orientation and size of a page



Auto, portrait,
landscape



widows



Sets the
minimum number of lines for a paragraph that must be left at the top of a
page



number


No comments: