How can we restrict a video height maximum to users screen height in angular? Video height should not be increase screen height. I tried to add some css but no success.
<video style="width: 100%; max-height: 90vh;" #myVideoId autoplay></video>
How can we restrict a video height maximum to users screen height in angular? Video height should not be increase screen height. I tried to add some css but no success.
<video style="width: 100%; max-height: 90vh;" #myVideoId autoplay></video>
use 100vh
which stands for view height instead of 100%
that takes the height of its parent.