We have a react application and would like users to be able to easily and cleanly print the various pages on the website. Our application uses react-bootstrap grid to handle responsiveness. Here is a snippet of one of our pages, which includes two tables. These tables are side-by-side in the top image (based on both the xl
and lg
breakpoints, which use two columns with size 6), and stacked in the bottom image (based on the md
breakpoint, with size = 12).
When I hit CMD + P to launch the print window, I receive the following for this part of the page with the 2 tables:
The print window always shows the two tables stacked, regardless of the current width of my browser. However, for printing, I would prefer for the two tables to be side-by-side, not stacked.
Is it possible to control / change the "width" of the page as perceived by the printer? I assume that currently the print functionality is simply treating the page as some width that falls into the md
breakpoint, however it would be great for the page to use the lg
or (preferred) xl
breakpoints.
Let's say you have something like this as your markup:
When printing, the below code will make the cols take up
max-width
of50%
just like whatcol-lg-6
orcol-xl-6
does