Home > database >  How to resolve extra blank space when printing in Chrome
How to resolve extra blank space when printing in Chrome

Time:06-08

When printing from Chrome, my page has extra space between lines - in the middle of a <p>!

Here's a gif, showing many different fonts, line spacing, width, etc. All of them have this extra space at the same spot.

CodePudding user response:

just change the value of your line-height to less than 1 or use display:inline-block for p

CodePudding user response:

The issue is caused by the text div being 'relative'ly positioned on the page.

You can't change to positioning 'absolute' either, since this breaks printing in Firefox (known bug)

Positioning the two text divs using a grid instead works in all browsers.

  • Related