Expand a div to fill the remaining width

前端 未结 21 1228
一生所求
一生所求 2020-11-21 22:21

I want a two-column div layout, where each one can have variable width e.g.

21条回答
  •  遇见更好的自我
    2020-11-21 23:08

    Have a look at the available CSS layout frameworks. I would recommend Simpl or, the slightly more complex, Blueprint framework.

    If you are using Simpl (which involves importing just one simpl.css file), you can do this:

    Tree
    View

    , for a 50-50 layout, or :

    Tree
    View

    , for a 25-75 one.

    It's that simple.

提交回复
热议问题