We tries to print a webview content over google cloud print, but no matter what we do the resulted printout adds some margin.
Is there a way to remove this margin? We tried:
<body style="margin: 0; padding: 0">
then
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
then
mWebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);
none worked...
html{margin:0; padding:0;}
works miracles. – Glacialist!important
in the style attribute as well? And same on the root node,html
i.e.html, body{ margin: 0 !important; padding:0 !important; }
? Could always setborder
to 0 just in case. Alternatively, perhaps try this in your CSS:@page{ margin-left: 0px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px; }
– Unremitting