RWD Videos


Using The width Property

If you set the 'width' property to 100%, the video player will adjust its size automatically to fit different screen sizes.

In the example mentioned earlier, you can make the video player bigger than its normal size. However, a smarter approach in most situations is to utilize the "max-width" property instead.


Using The max-width Property

If you set the 'max-width' property to 100%, the video player will shrink if needed but won't grow larger than its original size.


Add a Video to the Example Web Page

We need to insert a video on our sample webpage. We want the video to adjust its size to fit perfectly within the available space.