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

后端 未结 4 2122
独厮守ぢ
独厮守ぢ 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:26

    You could do something like this. It puts your main content first. You can use a vertically repeating css background image on your main "content" container to create the illusion of a background running all the way down the left column.

    Main content here
    Left content here

    To extend to a 3-column with fluid center:

    Main content here
    Left content here
    Right content here

提交回复
热议问题