• This works great for videos, but if you have other iframes which aren’t videos, id adds unnecessary padding.
    To avoid this, the js should be updated to have a more specific selector, such as iframe[allowfullscreen=”allowfullscreen”] or iframe[src*=youtube] to specifically target videos – not sure how to handle gmaps, etc…

    • This topic was modified 7 years, 8 months ago by bheadrick.
    • This topic was modified 7 years, 8 months ago by bheadrick.
  • The topic ‘adds padding to all iframes’ is closed to new replies.