Adding borders to span divs in Bootstrap messes up layout

后端 未结 5 1677
遇见更好的自我
遇见更好的自我 2021-02-07 13:58

I am starting with Twitter Bootstrap and have a question about how layout functions in it. Here is the HTML:



    
         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-07 14:23

    It sounds like you want your divs to stay on the same line, yes? To do that you'll have to specify a width and float them. Divs tend to always want to stack on top of each other.

    Here's a fiddle: http://jsfiddle.net/me73v/

提交回复
热议问题