CSS Problem to make 2 divs float side by side

前端 未结 4 1758
野的像风
野的像风 2020-12-19 18:41

I would like 2 divs, which are within a container div, to appear side-by-side. However the second one wraps for some reason. The 2nd div promo is below and to the right th

4条回答
  •  青春惊慌失措
    2020-12-19 19:05

    You need to float, inline or position:absolute those inner divs if you want them side-by-side. A "normal" div is a block object which forces following content to appear below it.

提交回复
热议问题