/*------------------page rules */ @page{ @bottom-left{ content: counter(page); } } /*------------turning off pads */ div.pad { display: none; } /*-----------------page breaks */ h1.heading1-heading2, h2.heading2-heading3 { break-before: always; }