 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
<!DOCTYPE html> <html>    <head>       <meta name = "viewport" content="width=device-width, initial-scale=1.0">          <style>             video {                width: 100%;                height: auto;             }          </style>    </head>    <body>       <video width = "300" controls autoplay>          <source src = "/html5/foo.ogg" type = "video/ogg" />          <source src = "/html5/foo.mp4" type = "video/mp4" />       </video>       <p>To check the effect, you need to resize the browser.</p>    </body> </html>Advertisements
 