php - Smaller image divs shrinking inside a container div on Print Preview (Divception) -


i have div holds number of smaller divs. these smaller divs used displaying pictures... not sure best way of explaining is, i'll add couple of images

template_design

anyways, in design view, have divs looking perfectly, or @ least near example above. lined looks whatever element. however...

template_print

when go print view, pictures divs shrink in size. lot of time isn't much, barely noticable, enough throw layout off. have tried on both chrome , firefox, , have downloaded opened in adobe; every time comes out same way. i've thrown can think of @ haven't been able figure out why happening.

here's css in regards larger div:

.image-grid{width:274mm;height:99.5mm;padding:3mm 0 0 7mm;}     .image{width:34.5mm;height:20mm;background-repeat:no-repeat;background-position:center center;background-size:cover;margin-right:2.99mm;margin-bottom:3mm;float:left;padding:0;}     .image-end{width:34.5mm;height:20mm;float:left;background-repeat:no-repeat;background-position:center center;background-size:cover;padding:0;} .mkt-drop-zone{background-repeat:no-repeat !important;background-position: center center !important;z-index: 1;} 

and here's html 1 of rows:

<div class="image-grid">     <div class="image mkt-drop-zone" style="background-image:url('<?php echo empty( $data['content_images'][0] ) ? $data['no_image'] : $data['content_images'][0]; ?>');"></div>     <div class="image mkt-drop-zone" style="background-image:url('<?php echo empty( $data['content_images'][1] ) ? $data['no_image'] : $data['content_images'][1]; ?>');"></div>     <div class="image mkt-drop-zone" style="background-image:url('<?php echo empty( $data['content_images'][2] ) ? $data['no_image'] : $data['content_images'][2]; ?>');"></div>     <div class="image mkt-drop-zone" style="background-image:url('<?php echo empty( $data['content_images'][3] ) ? $data['no_image'] : $data['content_images'][3]; ?>');"></div>     <div class="image mkt-drop-zone" style="background-image:url('<?php echo empty( $data['content_images'][4] ) ? $data['no_image'] : $data['content_images'][4]; ?>');"></div>     <div class="image mkt-drop-zone" style="background-image:url('<?php echo empty( $data['content_images'][5] ) ? $data['no_image'] : $data['content_images'][5]; ?>');"></div>     <div class="image-end mkt-drop-zone" style="background-image:url('<?php echo empty( $data['content_images'][6] ) ? $data['no_image'] : $data['content_images'][6]; ?>');"></div>     <div class="clear"></div> 

without seeing code best educated guesses, here mine:

somewhere, have css rule under media query @media screen or @media print. in first case, style getting applied page when viewed in browser, when getting printed, rule not getting applied. in second case, rule not being applied when viewed in browser, being applied when printing.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -