I have a video element set to 100% width in a div container. This div has a maximum width of 800 pixels and a minimum width of 400 pixels. When resizing the browser, I need the video element to resize while maintaining the original aspect ratio. Currently, it resizes in width, but retains its original height by adding top and bottom mailbox panels to compensate for this.
Is it possible to dynamically resize a video element without using Javascript?
source share