• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Bootstrap by
Q:
How can we make image responsive in Bootstrap?

1 Answer

0 votes
by
After the updates in Bootstrap, currently the feature to make an image responsive has been added, we can do this by adding a class .img-responsive to the <img> tag. This class makes the width max-width =100%; and height=auto; to the image so that it matches nicely to the parent element.

Related questions

0 votes
asked Oct 7, 2019 in Bootstrap by Tracy Williams
0 votes
asked Oct 30, 2020 in Bootstrap by sharadyadav1986
...