vertical-align with Bootstrap 3

后端 未结 25 2386
庸人自扰
庸人自扰 2020-11-21 05:34

I\'m using Twitter Bootstrap 3, and I have problems when I want to align vertically two div, for example — JSFiddle link:

25条回答
  •  [愿得一人]
    2020-11-21 05:46

    I ran into the same situation where I wanted to align a few div elements vertically in a row and found that Bootstrap classes col-xx-xx applies style to the div as float: left.

    I had to apply the style on the div elements like style="Float:none" and all my div elements started vertically aligned. Here is the working example:

    JsFiddle Link

    Just in case someone wants to read more about the float property:

    W3Schools - Float

提交回复
热议问题