简体   繁体   English

引导图像按钮之间的多余空间

[英]Bootstrap unwanted space between image buttons

Relatively new to Bootstrap and in need of some help. 对Bootstrap而言相对较新,需要一些帮助。 I have attached an img url to aid with my explanation. 我附上了img网址,以帮助我进行说明。

I have unwanted space inbetween image buttons, I want it to be a quarter of the size it currently is. 我在图像按钮之间有多余的空间,我希望它的大小是当前大小的四分之一。

    <div class="col-sm-3">
    <asp:ImageButton src="Content/MPGCalc.png" id="Mpg" runat="server" class ="img-responsive" />
        <br />
        <p>Miles Per Gallon and Journey Cost Calculator</p>
    </div>

I have done the above for each of the 8 images. 我已经为8张图片分别完成了上述操作。 I feel that the problem may be to do with that col-sm-3 is meant to only add upto 12. 我觉得问题可能出在col-sm-3只加12。

Any advice would be appreciated! 任何意见,将不胜感激!

http://imgur.com/wzVKSx5 http://imgur.com/wzVKSx5

Thanks to Andrew Peterson for the link, I ended up adding a new class .nopadding but then editing the margin to remove the space inbetween, as shown below. 多亏了Andrew Peterson提供的链接,我最终添加了一个新类.nopadding,但随后编辑了空白以消除它们之间的空间,如下所示。 Thanks for the input 感谢您的输入

.nopadding {
   padding: 0 !important;
   margin-bottom: -70px !important;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM