Which of the following class can be used to make the images and other content in a web page automatically adjusts to fit the size of the screen?

Questions & AnswersCategory: Programming LanguageWhich of the following class can be used to make the images and other content in a web page automatically adjusts to fit the size of the screen?
Adam asked 3 years ago

Which of the following class can be used to make the images and other content in a web page automatically adjusts to fit the size of the screen?
a. .img-rounded
b. .img-fluid
c. .img-circle
d. None of the above

1 Answers
Lokesh Kumar Staff answered 3 years ago

b. .img-fluid
Explanation: .img-fluid can be used to make the images and other content in a web page automatically adjust to fit the size of the screen in Bootstrap 4. In addition to that, also set max-width: 100%; and height: auto;