How might I force a floating DIV to match the height of another floating DIV?

前端 未结 11 669
悲&欢浪女
悲&欢浪女 2020-12-02 04:59

My HTML code is just dividing the pages into two columns, 65%,35% respectively.

11条回答
  •  南笙
    南笙 (楼主)
    2020-12-02 05:41

    If you are trying to force a floating div to match another to create a column effect, this is what I do. I like it because it's simple and clean.

    column a
    column b
    Line 2
    Line 3
    Line 4
    Line 5
    Column C

    I think this makes sense. It seems to work well even with dynamic content.

提交回复
热议问题