Currently, I am facing the challenge of printing web pages on my website and I am seeking advice on how to effectively utilize the row
and spanX
Bootstrap classes to better manage the content displayed on the printed page.
For instance:
<div class="row-fluid">
<div class="span12">
<strong>Some stuff</strong>
</div>
</div>
and
<div class="row-fluid">
<div class="span6 offset6">
<strong>Some stuff</strong>
</div>
</div>
must appear identical when using window.print()
.
In the provided example, it can be observed that
<strong>Some stuff</strong>
does not align properly with the use of offset6
.
I have attempted 2 solutions:
Extracted all the
@media print
code frombootstrap.css
andbootstrapresponsive.css
;Modified
media
toall
:
changing from<link rel="stylesheet" type="text/css" href="/path/css/bstrapmin.css" media="screen" />
to
;<link rel="stylesheet" type="text/css" href="/path/css/bstrapmin.css" media="all" />
Even after implementing these adjustments, the header, footer, and default Bootstrap font are visible on the printed page, but the class effects remain unnoticeable.
Your insights are appreciated.