CSS: Two 50% fluid columns not respecting min width

后端 未结 8 1020
清歌不尽
清歌不尽 2021-01-12 07:35

I\'m trying to use this layout with two 50% column width instead. But it seems that when the right columns reaches its \'min-width\', it goes under the left column. Is there

8条回答
  •  孤城傲影
    2021-01-12 08:37

    Use a 2 column table. It will do exactly what you want. Div's are supposed to be used to simply divide up logically distinct blocks, and tables are there to lay out columned data. If you want two columns, use a table, rather than trying to force Div's to behave like a table.

提交回复
热议问题