d38
d38

Reputation: 49

Featherlight.js - Allowing for Multiple iframe heights

Trying to set the iframe height for individual occurrences - I can set the overall height for all iframes in CSS, but I need some iframes fired to be height A, and others to be height B.

I tried using data-featherlight-variant to add a class to the iframes, but it's not appearing to work.

For instance:

<a href="https://www.google.com" data-featherlight="iframe">Open Google Normal</a> 
<hr>
<a href="https://www.google.com" data-featherlight="iframe" data-featherlight-variant="large">Open Google Large</a>

Here's the jsfiddle http://jsfiddle.net/JNsu6/80/

Thanks, Jonathon

Upvotes: 0

Views: 368

Answers (1)

xeo
xeo

Reputation: 832

try using these attributes: data-featherlight-iframe-width='670' data-featherlight-iframe-height='376'

Upvotes: 0

Related Questions