Which Bootstrap class creates a responsive image?
-
A
.img-responsive
-
B
.img-fluid
Correct answer
-
C
.responsive-img
-
D
.scale-image
Correct answer
B. .img-fluid
14 views
Explanation
The .img-fluid class in Bootstrap makes images scale nicely to the parent element.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ