Streaming live at 10am (PST)

Trouble getting a video to scale with its parent div


#1

I want a video to be scaled to its parent div whilst keeping its aspect ratio.

I have ahieved this with images but I cant seem to get this to work with videos even after applying all the same settings.

Ive set up a page called 'Test_Video' you can see how the image will scale with the browser keeping a height of 80VH however this is not true of the video beneath it, even though all the classes and div blocks that parent it are duplicates of the ones holding the Image

thanks,
Greg


Here is my public share link: LINK
(how to access public share link)


#2

By not putting it into any wrappers and leaving it by itself in the body it works fine.

I suggest adding a blank div block with no modifications done to it and then simply adding the video into it if you need the wrappers. This works well for me.

Hope this helps. :wink:


#3

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.