Print CSS for calendar pages
A print layout is a second presentation of the same calendar, with physical page dimensions and fewer interactive controls.
Set paper size and margins
CSS paged media provides a page size and margin box for the printable document. A4 is 210 × 297 mm; US Letter is 8.5 × 11 inches. Orientation changes which dimension is treated as the page width.
@page { size: A4 portrait; margin: 12mm; }
@media print { .controls, .site-header, .no-print { display: none; } .calendar { break-inside: avoid; } }Calendar Lab updates the page rule from the Print Studio controls and hides the navigation and editing controls in print. Grid borders remain visible; adjacent-month dates are muted; a notes area is optional. The print dialog may apply additional scaling or browser headers, so inspect its output preview.
Monthly and annual layouts differ
A monthly calendar can use larger day cells and a single seven-column grid. A yearly overview contains twelve compact month grids, so each cell must balance legibility against fitting the page. Landscape orientation may improve horizontal space; portrait may suit a wall or binder page. The preview is based on the selected paper size, orientation, and margins.
Use the browser’s PDF workflow honestly
Modern browsers can print a webpage or save it as PDF. That is a native browser workflow, not a custom PDF generator. The Print Studio labels this action directly and lets the user choose “Save as PDF” in the system print dialog. Page geometry and final scale can differ by browser and printer driver.
Open the Print Studio to inspect a live monthly or annual layout. For a blank calendar template from BetaCalendars, see the blank calendar collection.
Accessible print and screen views
Keep meaningful text in the document, expose controls with visible labels, and provide clear focus states for keyboard users. The screen layout can use responsive cards and a sidebar; print CSS can remove those controls without changing the calendar data. Avoid encoding dates only through color—weekday headings and day numbers remain explicit.
For the date grid implementation, see Gregorian date arithmetic.