Solution: Responsive Video Embed
Let’s create a responsive video embed component that preserves a 16:9 aspect ratio and scales fluidly with its container using only CSS.
We'll cover the following...
We'll cover the following...
Problem description
Given a container element wrapping an <iframe>
(e.g., a YouTube video), write CSS rules so the wrapper maintains a 16:9 aspect ratio and the video scales to fill the ...