Tsallaka zuwa abun ciki
Justice Tech School

Images

.img-fluid makes an image scale with its parent. .img-thumbnail adds a border and .rounded or .rounded-circle changes the corners.

Example
<img src="photo.jpg" class="img-fluid rounded" alt="A photo">
<img src="me.jpg" class="rounded-circle" width="100" alt="Me">

Exercise

Responsive 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.