Print using system dialog with @page properties - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Print using system dialog with @page properties

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style type="text/css">
@page<!-- w w w.j a  v  a 2 s. c om-->
 {
   margin:11cm 11cm;
}

@media print
 {
   @page
    {
      margin:0;
   }

}
</style> 
 </head> 
 <body> 
  <h1>Hello World</h1>  
 </body>
</html>

Related Tutorials