HTML/CSS set div to height of sibling

后端 未结 10 2156
南旧
南旧 2020-12-03 00:43

I have 2 div\'s contained in a third. One of the contained div\'s is floated left, the other floated right. I would like the 2 sibling div\'s to always be at the same heig

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-03 01:01

    They will stack if there is not enough room. Make sure the div containing both is wide enough to have them both... if you remove their widths for testing, I bet it will work.

提交回复
热议问题