Quantcast
Channel: Bootstrap grid for printing - Stack Overflow
Browsing latest articles
Browse All 15 View Live

Answer by Christine Wilson for Bootstrap grid for printing

Based on Fredy31's answer using Bootstrap's exact widths and removing repetition of float left.[class^="col-print"] {float:left;}.col-print-1 {width:8.33333333%;}.col-print-2...

View Article



Answer by Daniel Iftimie for Bootstrap grid for printing

For Bootstrap 4 sass here are some snippets that I applied across several projects. These are making adjustments on:Grid (follows the LG breakpoint)Spacers (rewrite all below LG...

View Article

Answer by Rusca8 for Bootstrap grid for printing

If it's just one line of text in two columns you can use the accepted answer here.

View Article

Answer by Ganesh Koilada for Bootstrap grid for printing

Instead of recreating with new column names like .col-print-1 , .col-print-2 , write a media query which will be enable while printing the document. @media print {...

View Article

Answer by Rui Caramalho for Bootstrap grid for printing

For Bootstrap 4 (using SASS)@each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); @for $i from 1...

View Article


Answer by seflix for Bootstrap grid for printing

If you only have 2 columns, you can try it. I fixed it with the code below.<div class="row"><div class="w-50 p-3 float-left"> </div><div class="w-50 p-3...

View Article

Answer by William Schroeder McKinley for Bootstrap grid for printing

And the SASS version of Ehsan Abidi's answer using MiCc83's answer: @for $i from 1 through 12 { .col-sm-#{$i} { width: #{percentage(round($i*8.33)/100)}; float: left; } }I prefer this because I always...

View Article

Answer by Ehsan Abidi for Bootstrap grid for printing

If you want the Bootstrap's grid do not print with col-xs (mobile settings) , and want to use col-sm-?? instead , Based on Fredy31 answer and you don't even need to define col-print-??. simply rewrite...

View Article


Answer by kspearrin for Bootstrap grid for printing

The following works great to create grid elements specific for print media. Using Bootstrap 3.@media print { .make-grid(print);}Then you can use all the grid col elements with the print keyword. Ex:...

View Article


Answer by Alessandro Benoit for Bootstrap grid for printing

The Sass version of Fredy31 solution:@for $i from 1 through 12 { .col-print-#{$i} { width: #{percentage(round($i*8.33)/100)}; float: left; }}

View Article

Answer by Fredy31 for Bootstrap grid for printing

What I did was to manually recreate those columns classes in my print css..col-print-1 {width:8%; float:left;}.col-print-2 {width:16%; float:left;}.col-print-3 {width:25%; float:left;}.col-print-4...

View Article

Answer by firepol for Bootstrap grid for printing

I had a similar problem, for me the easiest solution was to manually modify the width for elements I wanted to appear differently when printed (and I added a specific class -in my case:...

View Article

Answer by Edgar for Bootstrap grid for printing

Maybe you could use Bootstrap 2. If you are familiar with Bootstrap 2, then you can use it as an alternative, as this offers non responsive CSS. Bootstrap 2 was not mobile first, you had to add an...

View Article


Answer by Dwza for Bootstrap grid for printing

Your switch styles like this<div class="row"><div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div><div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div><div...

View Article

Bootstrap grid for printing

I would like to design a report page with a different layout for printing to mobile. I am using bootstrap v3. It seems the grid can't differentiate between the two as the breakpoint for printing is the...

View Article

Browsing latest articles
Browse All 15 View Live




Latest Images