side by side divs

后端 未结 7 2185
忘掉有多难
忘掉有多难 2020-12-19 01:25

I\'ve got 4 divs inside a parent div. To get them to appear side by side, I\'ve given all 4 divs a style with float:left. The divs do appear side by side, but the parent d

7条回答
  •  猫巷女王i
    2020-12-19 02:15

    If you want the divs to be side-by-side, you could try using inline-block:

    
    
    

提交回复
热议问题