The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "SVG" Oct 14 - 6:30 PM Eastern
Get a free trial // Grow your CSS skills // Land your dream job

Fitvids – make it respect original embed width?

  • # January 4, 2013 at 7:21 am

    So I’m using fitvids.js on a simple youtube embed – is there any way to make fitvids just respect the iframe width/height values and only become responsive after that point?

    # January 4, 2013 at 9:32 am

    To make videos responsive, I generally use [Elastic Videos]( “”), rather than a Javascript solution, so you may want to give that a look. I’ve worked up a [CodePen]( “”) where the video is responsive after the min-width of 560px is reached.

    Unfortunately, I don’t have experience with Fitvids so I can’t help you if you’re tied to using it.

    # January 5, 2013 at 5:26 am

    Thanks for that – I may well end up using it.

    I welcome any other suggestions in the meantime!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed