Creating two columns layout - html/css semantics

前端 未结 4 1104
忘了有多久
忘了有多久 2021-01-23 11:13

I want to create a very simple liquid layout with 2 columns - the one to the left will have a fixed width, and the one to the right will be dependent to the window size.

4条回答
  •  孤街浪徒
    2021-01-23 11:58

    1) If the container div is needed or not depends very much on your actual design, but from what I can see from what you have showed, it is not really necessary. What is body stuff?

    2) You have answered your question yourself. If you want to prevent an overflow because of padding, margin,border, keep it.

提交回复
热议问题