I am trying to force a Facebook Embed to take up half the page. Normally in CSS, I would do width: 50%, but Facebook seems to cap the max pixels at 500, but I don't want that to happen. Is there a work-around for this?
Heres my current code:
iframe{
width: 100%; /*should take up the entire container, instead takes up 500px*/
}
<iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Feliotfiskguitar&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="340" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share"></iframe>
As you can see in the snippet, it should be taking up the entire page, but it instead takes up 500px.
I also tried using JQuery to calculate the width of the page and set the data-width attribute to the width in pixels, but again, it was capped at 500px.
Help appreciated.
Thanks