1
What is normally done is this:
<div class="fb-comments" data-href="http://example.com/comments" data-numposts="5"
data-colorscheme="light"></div>
I also added this div with the Fp-container class and put the div of the plugin inside it, so:
<div style="padding:0;" class="fb_container">
<div class="fb-comments" data-href="http://example.com/comments" data-numposts="5"
data-colorscheme="light"></div>
</div>
This is to make the plugin ignore the original formatting and get the formatting of my CSS that configures the width in 100% of the parent div, I put so:
.fb-comments, .fb-comments * {
width:100% !important;
}
This works on desktop browsers, however on mobile browsers used vertically makes no difference.
This tip is given by Facebook itself:
The width (in pixels) of the plugin. The mobile version of the Comments plugin ignores
the width Parameter, and Instead has a Fluid width of 100%.
Does anyone have any tips on how to make this plugin responsive in vertical mobile browsers?
Would not be
height
your problem? I could not understand what is going wrong, please rephrase a little your doubt itself, the explanation is ok but the question is not clear.– Paulo Roberto Rosa
Dear Paul, the following is happening, when we use the Facebook comments plugin on the page and it is opened in a mobile browser, the plugin dramatically increases the width of the page, ignoring the width of the parent div.
– Heavypipo