Tsallaka zuwa abun ciki
Justice Tech School

Responsive Images and Ratios

img-fluid scales images and ratio keeps aspect.

Example
<img src="a.jpg" class="img-fluid rounded" alt="">
<div class="ratio ratio-16x9">
  <iframe src="https://www.youtube.com/embed/xyz" title="Video"></iframe>
</div>

Exercise

Fluid image.

class="img-"

Quiz Test

What does img-fluid do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.