How can multiple (dynamically sized) divs share 100% width?

前端 未结 3 1737
难免孤独
难免孤独 2021-01-19 16:40

I\'ve got following html structure:

3条回答
  •  面向向阳花
    2021-01-19 17:12

    What is determining the width of the middle div? As my rep score will atest I am not a very experienced developer, but I think this is the crux of your problem. If it litterally does not matter what the middle column's width is then a div ratio of 70%, 0%, 30% and 7%, 90%, 3%. are mathematically equivlent answers to your problem. So your solution could be as simple as:

    Some elements here.
    Some more elements here.
    Even more elements here.

提交回复
热议问题