HTML/CSS set div to height of sibling

后端 未结 10 2166
南旧
南旧 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:16

    I think you have these options:

    • faux columns - using a repeating background image for the container div to create the appearance of equal height
    • using a table
    • using javascript to adjust the div height
    • using a javascript to add css support to non-compliant browsers

提交回复
热议问题