Is there a disadvantage of using `display:table-cell`on divs?

后端 未结 4 2078
独厮守ぢ
独厮守ぢ 2020-11-29 07:42

What I am trying to accomplish is having a fixed-width first div and a fluid second div which will fill up the rest width of the parent div\'s width.

4条回答
  •  温柔的废话
    2020-11-29 08:23

    To get the first example working, you should also float the containing div, this will make sure that both of the elements within sit as you would expect within it. Not really sure what you mean by 'is a pain', though?

提交回复
热议问题