On a two-column page, how can I grow the left div to the same height of the right div using CSS or Javascript?

后端 未结 11 2735
野趣味
野趣味 2020-12-15 07:17

I\'m trying to make a two-column page using a div-based layout (no tables please!). Problem is, I can\'t grow the left div to match the height of the right one. My right di

11条回答
  •  春和景丽
    2020-12-15 07:37

    Come to think of it, I've never done it with a bottom border on the column. It's probably just overflowing, and getting cut off. You might want to have the bottom border come from a separate element that's part of the column content.

    Anyway, I know it's not a perfect magic bullet solution. You might just have to play with it, or hack around its shortcomings.

提交回复
热议问题