Currently, I am in the process of designing a print template for my website. Everything seems to be going smoothly except for one issue that has arisen. The screen resolution on my device is 1600x900, so I have designed the page specifically for this resolution. However, the problem lies in the height of the page. Even though the page is created using Bootstrap and is responsive, there seems to be a discrepancy when it comes to how the page appears on different resolutions.
This pertains to the "print preview (ctrl + p)"
Header
Some text
Some text
Some text
Some text
Body
Some text
Some text
Some text
Some text
Footer
Some text
Some text
Some text
Some text
When viewed on other resolutions, the layout looks like this:
Header
Some text
Some text
Some text
Some text
Body
Some text
Some text
Some text
Page 2
Some text
Footer
Some text
Some text
Some text
Some text
My query is if there is a method to make the page fit the same height regardless of the resolution, essentially displaying the content exactly as it appears on my screen.
Here are some of the methods I have attempted:
p {
font-size: 12px;
line-height: 1;
}
@page {
size: A4 landscape;
margin-left: 18mm;
margin-top: 0.2mm;
}
While this solution sometimes works, I am seeking additional tips or suggestions to solve this issue. Thank you in advance for your assistance, and I apologize if my explanation is unclear.