The objective
Our goal is to replicate the layout of the home page from Meetup, with the video positioned beneath the navigation bar.
The challenge
When it comes to displaying videos within a div element, they can be tricky to control. While the aspect ratio remains intact, white spaces may appear around the video inside the div. Although object-fit
is supported in 'traditional' HTML, attempts to implement it in React JS have been unsuccessful. How can we successfully fill a div with a video
tag in React JS?
Here is the link to the CodeSandbox demonstrating this issue: Code Sandbox Link
We appreciate you taking the time to read through our query!