How to give a style to images in bootstrap?



How to give a style to images in bootstrap?..

Answer / Pushker Bhardwaj

To style images in Bootstrap, you can use various classes like `img-responsive`, `img-rounded`, `img-thumbnail`, and more. For example:

<img src="myimage.jpg" class="img-responsive">

In the example above, I used the `img-responsive` class to make the image resize automatically based on its container.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Bootstrap Interview Questions

What are different shapes for image in bootstrap?

1 Answers  


Explain me how you can add badge to list group in bootstrap?

1 Answers  


What is the step-wise procedure for creating basic or vertical forms?

1 Answers  


What is the bootstrap panel?

1 Answers  


Explain bootstrap 4 tables?

1 Answers  


Do you know what pagination in bootstrap is and how they are classified?

1 Answers  


Please explain what is bootstrap well?

1 Answers  


Tell me what are the key components of bootstrap?

1 Answers  


What are the two ways you can display the code in bootstrap?

1 Answers  


Explain me types of lists supported by bootstrap?

1 Answers  


Tell me which class is used to draw a toolbar of buttons?

1 Answers  


How many types media objects in bootstrap?

1 Answers  


Categories