Page 1 of 1

How do you make Data-width 100%?

Posted: Tue Mar 01, 2016 7:05 am
by simonmlewis

Code: Select all

<div class=\"fb-like-box\" data-href=\"https://www.facebook.com/website\" data-width=\"307\" data-height=\"398\" data-colorscheme=\"light\" data-show-faces=\"false\" data-header=\"false\" data-stream=\"true\" data-show-border=\"false\"></div>
We use this code to show the feeds from Facebook pages. Trouble is, this width is set for desktop, but we want it to "stretch" for mobile.

data-width=\"100%\" doesn't work. And I have tried removing it, and using style='width: 100%' but that fails too.