Skip to content

This script will set the max height of a video to the available vertical space within the viewport. So the Video AND the controls are visible at every screen ratio (portrait & landscape mode) for responsive layouts.

Notifications You must be signed in to change notification settings

doptrois/MaxVideoHeightViewportMatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MaxVideoHeightViewportMatcher

This script will set the max height of a video to the available vertical space within the viewport. So the Video AND the controls are visible at every screen ratio (portrait & landscape mode) for responsive layouts.

Live demo: http://jsfiddle.net/doptrois/PEsBL/

About

This script will set the max height of a video to the available vertical space within the viewport. So the Video AND the controls are visible at every screen ratio (portrait & landscape mode) for responsive layouts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published