0

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>
Feroze Ahmed
  • 53
  • 11
  • Check this: https://stackoverflow.com/questions/19796799/fully-responsive-html5-video – D A Nov 15 '21 at 10:25

2 Answers2

0

You could try with height:90vh; max-height:90vh both

0

use 100vh which stands for view height instead of 100% that takes the height of its parent.

LHDi
  • 319
  • 1
  • 8