Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome print preview cutting text off in the middle if it reaches the bottom margin of the page

When printing on Chrome, my page (top and bottom) margins are cutting the text in half. On my print.css I defined:

@page {
    size: letter;
    size: 8.5in 11in;
    margin: 20cm 2cm;
    overflow: visible;
}

Cannot find a possible solution to fix this bug. Any advice would be greatly appreciated.

like image 749
ivstudio Avatar asked Oct 12 '14 16:10

ivstudio


People also ask

How do you fix HTML elements being cut off when printing?

Use " overflow: auto " (or maybe " overflow: visible ") instead. Is the element itself, or a container, using " position: absolute " or " position: fixed ". You should use " position: static " (default positioning) for printing.

Why does Chrome cut off the side when I print?

In order to change Chrome default print margins, all you'll have to do is change the margins settings to your preference and it will become the default print margins. To change the print margins settings in Google Chrome, this is what you'll need to do: Enter the Chrome print preview page (Shortcut: Ctrl+P):

Can I change the margins when previewing and printing a document?

Document prints and previews, but cuts off the margins. Changing margins does NOT help. When I preview and print a document in Word 2010, the document is previewed and printed with most of the words cut off.

How to disable print preview in Google Chrome?

Step 1: Open regedit. Step 2: Go to Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Google\Chrome or Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome Step 3: Add DisablePrintPreview REG_DWORD with value 1. Step 4: Restart Google Chrome. Remark: You can use the group policy to push down this key to all user PC. Step 1: Open Terminal.

How to fix loading print preview take long time issue in chrome?

Follow below solution steps to resolve loading print preview take long time issue by disabling print preview function in Google Chrome. Step 1: Open regedit. Step 2: Go to Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Google\Chrome or Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome

How do I print from the top of the page?

Open Edge browser > open your URL / Webpage > Settings (three dots, upper right) > Print > More Settings If margins are left at Default, the print may start 2 inches from the top of the paper >> check!


1 Answers

 margin: 20cm 2cm; 

Your top and bottom margins are 20cm each (7.8in) on paper that is 11 inches high. That doesn't make sense. Did you mean 20mm (2cm) margin?

like image 75
Kornel Avatar answered Sep 19 '22 23:09

Kornel