Is there a simple way to make my webpage follow the col-sm-*
grid instead of the col-xs-*
grid when printed? Can the width of the print preview page be adjusted to accommodate styles for col-sm-*
rules?
Here's an example:
window.print();
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<div class="row">
<div class="col-sm-6 col-xs-12">
<h1>Left column</h1>
</div>
<div class="col-sm-6 col-xs-12">
<h1>Right column</h1>
</div>
</div>
This is what currently prints:
https://i.sstatic.net/Afevp.png
This is what I would like it to look like when printed: