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

后端 未结 3 1790
半阙折子戏
半阙折子戏 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:41

    If I understand your question right, you would like to show these pictures in a horizontal line, with a certain amount of space in between the pictures ?

    First of all to get the DIV's in line change the following

    .col-lg-4 {
       display: inline-block;
    }
    

    try to specify a width for your container and row (e.g. 100%) and then your divs holding the pictures. Hope this helps you out?

提交回复
热议问题