Adjust font size when print - HTML CSS CSS Property

HTML CSS examples for CSS Property:font-size

Description

Adjust font size when print

Demo Code

ResultView the demo in separate window

<!doctype html>
<html>
 <head> 
  <style type="text/css">
body {<!--  www.ja  va 2s . c  o  m-->
   font-size:13pt;
}

@media print  {
   body {
      font-size:49pt;
   }

}
</style> 
 </head> 
 <body>
   This is a sample document with normal size text that should print large.  
 </body>
</html>

Related Tutorials