Here is a JSFiddle link I would like to share with you:
I am currently working on squeezing the webpage to display an ad on the right side.
http://jsfiddle.net/5o6ghf9d/1/
It works well on desktop browsers, but I am facing issues with iPad Safari/Chrome browsers as the page is not getting squeezed properly.
Below are the functions that I am using to squeeze and unsqueeze the webpage:
function squeeze_page(){
d.body.style.paddingRight='160px';
d.body.style.paddingLeft='160px';
d.body.style.marginLeft='-160px';
d.body.style.overflowX='hidden !important';
is_page_squeezed=true;
}
function unsqueeze_page(){
d.body.style.paddingRight='';
d.body.style.paddingLeft='';
d.body.style.marginLeft='';
is_page_squeezed=false;
}
If you have any suggestions or alternative methods to squeeze the webpage effectively, please let me know.