Creating two columns layout - html/css semantics

前端 未结 4 1109
忘了有多久
忘了有多久 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 12:09

    1. Yes, you can use your body as your container.
    2. You can get rid of your inner div-s as long as you use box-sizing: border-box; More about that here: http://css-tricks.com/box-sizing/

提交回复
热议问题