Responsive video

Designing responsive video

Ensure videos resize as the viewport size changes so they do not overflow the viewport. This can be achieved by either:

  • setting the CSS max-width:100% property on the video’s container element, or
  • setting the CSS width: 100% property on the video element.

Static sizing can break page layouts.

 Good example: Width 100% video

In this example, the video uses CSS width:100% and resizes in all views. To see the responsive design in action, visit the TED Talk Ron McCallum: How technology allowed me to read and resize your browser window.

View screenshots of the responsive video

Desktop view of the video

In the desktop view, the video fills one of two columns.

Tablet view of the video

In the tablet view, the video fills the one column.

Phone view of the video

In the phone view, the video fills the one column.
Back to top