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

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

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

11条回答
  •  情话喂你
    2020-12-02 05:40

    Flex does this by default.

    CSS:

    #flex{display:flex}
    #response{width:65%}
    #note{width:35%}
    

    https://jsfiddle.net/784pnojq/1/

    BONUS: multiple rows

    https://jsfiddle.net/784pnojq/2/

提交回复
热议问题