The Pinterest Widget Builder allows for flexibility in creating a widget to place on your site. I added one on this page, but there appears to be a limit to the width you can set for the widget. For example I set the width to 1170, but it is only displaying at 1111px.
Here is the code:
<a data-pin-do="embedUser" href="http://www.pinterest.com/rouvieremedia/" data-pin-scale-width="180" data-pin-board-width="1170">Follow Pinterest's board Pin pets on Pinterest.</a>
This is a Bootstrap site and I would really like to be able to make this widget responsive as well. I tried applying css styling to the widget just to see if I could impact it using this. Alas, no luck.
div.container > span.PIN_1407891215996_embed_grid.PIN_1407891215996_fancy {
border: 5px solid red;
}
Any suggestions for interacting with this element would be appreciated. Then I can apply some additional styling.
The width of the widget depends on a number of factors:
So if you want an exact width of 1200, try the
data-pin-scale-width="195"
. That should do it, assuming the enclosing element is larger.To make the Pinterest widget responsive, this is the solution that worked for me. Taken from here.
CSS
Wrap your widget in a container, e.g.
#pinterest-container
, and add the following styles:The first one overrides width which is otherwise fixed, making it responsive. The second one deals with an issue where the last column is not displayed if the widget is very narrow.
Here's a solution I came up with: http://pastebin.com/kXVDWUu8
I suggest including the following style: