First of all, Thanks for the great module!
It would be awesome if we could set max height and width for a video. Is it possible?

Comments

derekahmedzai’s picture

Thanks.

That's probably something you'd want to set in your theme:

.fluid-width-video-wrapper iframe
{
	min-width:200px;
	max-width:800px;
}

Although if there's enough interest, it could be added fairly easily.

nikkubhai’s picture

Sorry, but the code didn't work . :(

derekahmedzai’s picture

Hmm, seems like once the videos are made fluid, then they don't like min/max values.
Will have to do some tinkering to see if this is possible.

derekahmedzai’s picture

Status: Active » Closed (won't fix)

You can't set a max-height, but you can limit the width by adding max-width to a containing div :-

.video-container
{
  max-width:300px;
}
<div class="video-container">
  <iframe width="420" height="315" src="http://www.youtube.com/embed/EP1_-GmPPdQ" frameborder="0" allowfullscreen></iframe>
</div>
deggertsen’s picture

This is great documentation that should be added (assuming it's not already somewhere besides here).