Set printing double-sided documents with CSS

CSSWeb DevelopmentFront End Technology

When printing double-sided documents, the page boxes on the left and right pages should be different.

Example

It can be expressed through two CSS pseudo-classes as follows −

<style>
   <!--
      @page :left {
         margin-left: 4cm;
         margin-right: 3cm;
      }
      @page :right {
         margin-left: 3cm;
         margin-right: 4cm;
      }
   -->
</style>
raja
Updated on 26-Jun-2020 07:07:38

Advertisements