in Education by
I have a Facebook Like button implementation which is rendering fine in all browsers desktop and mobile. But the issues lies on low-res devices with resolution of 240x320. the Like button is causing the device to zoom into the page thus rendering horizontal scrolling. The buttons is rendering fine on devices with width >= 320px like the iPhone etc., but older android devices with width less than that are facing issues. The way I see it. The page loads fine, then makes a server call to Facebook and then returns with some parameter that breaks it all up. It is generating an . I am trying to put width and overflow CSS parameters but none seem to work. I am initializing the Like button like this:
<!--Facebook begins-->
" data-send="false" data-layout="button_count" width="80" data-show-faces="false">
<!-- ends -->
window.fbAsyncInit = function () { FB.init({ appId: '328982000461228', status: true, cookie: true, xfbml: true }); FB.Event.subscribe('edge.create', function (response) { ntptEventTag('ev=Social&Action=Method Shared'); }); }; JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Put your like button into a div and apply the overflow hidden style on that div. UDATE: Try also to set overflow hidden on the html and body tag (makes a big difference on fb page tabs). A code snippet you also might find useful is this: body { -webkit-touch-callout: none; -webkit-user-select: none; -webkit-user-modify: none; -webkit-highlight: none; -webkit-user-select: none; }

Related questions

0 votes
    I have set all my meta properties in the way I understand they should be. Currently when I 'like' ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    I've set up a simple app to run in a page tab. After authorizing the use of the app, just for ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    I styled a button: .subscribe_button { background-color: red; } .subscribe_button:hover { background-color: ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I made this single web page and when I view it my mobile device, and I thumb to the left, the ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Nowadays, an electronic device - the cell phone - is very popular. From a mobile shop near your ... ,Science proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
0 votes
    What is the key difference between mobile device testing and mobile application testing?...
asked Feb 9, 2021 in Technology by JackTerrance
0 votes
    is a small storage device shaped like a small pen.(pendrive/CD) Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    __________ is a device like photocopier, which creates an electronic form of a printed image. Select the correct answer from above options...
asked Nov 25, 2021 in Education by JackTerrance
0 votes
    Need to show a credits screen where I want to acknowledge the many contributors to my application. Want it ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I need to keep the arrow keys from being able to scroll through my various tabs. Anyone know of a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I am inputting a 200mb file in my application and due to a very strange reason the memory usage of ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    I am inputting a 200mb file in my application and due to a very strange reason the memory usage of ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 5, 2022 in Education by JackTerrance
0 votes
    I currently have the following code: My problem is that the image when submitted isn't doing the same ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 28, 2022 in Education by JackTerrance
...