Use CSS width property for a responsive video player

To make your video player responsive, use the width property and set it to 100%

Example


   
      
         
   
   
      
      

To check the effect, you need to resize the browser.

   
Updated on: 2026-03-11T22:50:41+05:30

240 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements