Αποτελέσματα Αναζήτησης
12 Αυγ 2022 · A better option for full control on printed margins is to use the @page directive to set the paper margin, which will affect the margin on paper outside the html body element, which is normally controlled by the browser. See http://www.w3.org/TR/1998/REC-CSS2-19980512/page.html.
The article outlines how to use CSS to create print stylesheets that ensure web content is presented in an optimal format when printed. This includes using specific media queries for print ...
4 Ιουλ 2024 · You can also use the @page at-rule to modify different aspects of printed pages including the page's dimensions, orientation, and margins. The @page at-rule can be used to target all pages in a print-out or just a specific subset of pages
2 Οκτ 2024 · The @page at-rule is a CSS at-rule used to modify different aspects of printed pages. It targets and modifies the page's dimensions, orientation, and margins. The @page at-rule can be used to target all pages in a print-out or a subset using its various pseudo-classes.
24 Δεκ 2020 · The @page rule allows margins to be set, and should be used as follows: @page { margin: 2 cm;} CSS also has the capacity for more sophisticated print layouts, such as varying the margin according to whether the page is an odd-numbered one (right), even-numbered (left), or the cover page.
30 Σεπ 2022 · How to Make Your Web Pages Printer-Friendly With CSS. Craig Buckler. · Sep 30, 2022 ·. 12 min read. Table of contents. Adding Printer Stylesheets. How to Test Printer Styles. Hide Unnecessary Content. Simplify Your Layout. Apply Printer-Friendly Styling. Add Print-Only Content. Set Page Dimensions. Control Page Breaks.
30 Οκτ 2024 · Add content to margin boxes. To add content to margin boxes use CSS generated content, just as you would with the ::before and ::after pseudo-elements. In this case, use the at-rule related to the box you want to target. The following CSS adds the text "My book" to the bottom left margin box or right-hand pages.