javascript - horizontal alignment div in print css -


i trying print web page.... trying align div structure properly.... problem using media queries iphone layout.... css disturbing print.... how remove properties in media print...and make div horizontally aligned... when right click , print page can see result...

http://jsfiddle.net/rrgdw/

@media print {         tr.inventorylistheading {                         background-color: #1a4567 !important;                         -webkit-print-color-adjust: exact;         }}     @media print {         .inventorylistheading th {             color: white !important;         }} 

there's not enough of css/structure go on, if want centre div horizontally add following

#idofdiv { position: relative; margin: 0 auto; width: 1000px; /*whatever width*/ } body, html /*whatever parents*/ { position: relative; width: 100%; } 

your jsfiddle isn't readable you're going have elaborate here more if isn't you're asking for.

i'm not sure i've understood, iphone media query print css shouldn't affect iphone layout if think code sample have shown iphone doesn't seem likely.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -