Pinterest style layout (Bootstrap 3 + Masonary) *final tweeks*

回眸只為那壹抹淺笑 提交于 2019-12-04 21:07:24

Is there a particular reason that you need to use col-lg-* ? Because col-lg-* classes treat elements for large screen sizes. You can use the other classes that bootstrap 3 provides like col-md-, col-sm- and col-xs-* to exactly specify how many columns you want in different view port sizes. So if you you want your div to be 4-column wide in large screens you assign col-lg-4 and if you want it to be 6 columns in medium size screens then you would assign col-md-6 class to the same div. Something like this:

<div class="col-lg-4 col-md-6">
</div>

and of course you can use pull and push classes to move your columns around. Bootstrap documentation summarizes this in a table. Hope that helps because I don't know exactly why you just need to use col-lg-4.

HTML

<div class="container container-fluid">

CSS

.pin {
    margin: 0 0 0px;
    text-align: left;
    width: auto;
 }

This will let you decide how many columns you want with the bootstrap col-md class. Use col-md-3 for four columns grid and col-md-4 for 3 columns grid.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!