side by side divs

后端 未结 7 2186
忘掉有多难
忘掉有多难 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条回答
  •  情深已故
    2020-12-19 02:11

    millinet's answer will work, or you could float the parent div which will also allow it to expand to contain its content

提交回复
热议问题