Media Examples with Responsive Treatment
Images
A common technique in Responsive Web Design is to make images flexible by setting a max-width of 100%. The image will then shrink and grow up to the max restriction. Images are often used for backgrounds of pages or containers where the text and other elements float over the top of the background image. Another popular use for images is to display a gallery. See the images below from the beautiful Kansas City fall 2018. With the help of a CSS flexbox, the images fluidly change size and arrangement.
Flexbox Image Gallery - Leaf Walk 2018
Video
Video has become a critical means for web builders to include in their design. A local video can be embedded into a page using the HTML5 <video> tag. See an example on the credits page. The challenge with directly embedding a video hosted within a site is that file sizes, especially for high resolution video, can be very large which is like kryptonite for the page load speed of a website. To counter that, it is popular to use a video hosting service such as YouTube or Vimeo and embed the video into the page.
YouTube has become one of the most watched platforms in the world and they offer an attractive video player, but their embed codes include height and width attributes which do not lend themselves to being very responsive. A way to counter that is to use CSS to create a container where the video is displayed at 100% width and with a bottom padding of 56.25% to maintain a 16:9 ratio. The container is then wrapped in a second div which can be used to size and arrange the video on the page. Credit to YouTuber, Ralph Phillips and his video "Embed Responsive Videos with YouTube iframe and Video Tag which explains this well!