How do I space these images inside of a Bootstrap 3 grid system?

后端 未结 3 1829
半阙折子戏
半阙折子戏 2021-01-05 09:12

I am wondering which is the best way to put spaces in between these 3 images with CSS using Bootstrap 3 RC2 as what I have done at the moment is not auto-resizing the images

3条回答
  •  天命终不由人
    2021-01-05 09:50

    Remove your own CSS for .col-lg-4: these margins may screw up the Bootstrap CSS. Next to that, these columns are only visible when your screen width is bigger than 1200 px.

    Add the following classes to your divs: .col-xs-4 .col-sm-4 and .col-md-4, and give images a class="img-responsive" attribute.

    It should work now as you wish.

提交回复
热议问题