Digital pattern library

Responsive embed

Allow browsers to determine video or map dimensions based on the width of their containing block by creating a responsive ratio that will properly scale on any device.

First, give your iframe, embed, video or object element a class of embed-responsive-item then wrap it with the following HTML code:

The second class in the parent div decides the video's ratio. There are two choices:

You don't need to include frameborder="0" in your iframe as Bootstrap overrides that for you.


Options available


16:9 (content whole)

Code


4:3 (content whole)

Code


16:9 (content thrids)

Related content

  • Item 1
  • Item 2
  • Item 3
Code

Related content

  • Item 1
  • Item 2
  • Item 3

4:3 (content thrids)

Related content

  • Item 1
  • Item 2
  • Item 3
Code

Related content

  • Item 1
  • Item 2
  • Item 3

16:9 (content halves)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices eu elit id tempor. Fusce at porta lorem, eget porta libero. Ut vitae odio id lacus faucibus ornare at vitae orci. Sed lacus quam.

Code

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices eu elit id tempor. Fusce at porta lorem, eget porta libero. Ut vitae odio id lacus faucibus ornare at vitae orci. Sed lacus quam.


4:3 (content halves)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices eu elit id tempor. Fusce at porta lorem, eget porta libero. Ut vitae odio id lacus faucibus ornare at vitae orci. Sed lacus quam.

Code

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultrices eu elit id tempor. Fusce at porta lorem, eget porta libero. Ut vitae odio id lacus faucibus ornare at vitae orci. Sed lacus quam.