How can I prevent HTML elements from overlapping or sliding under one another?

后端 未结 2 372
萌比男神i
萌比男神i 2021-01-05 10:28

I am trying to layout a page in three columns, I want the middle column to resize with the page but the problem is that if the page is made very narrow, the left column eith

2条回答
  •  梦毁少年i
    2021-01-05 11:14

    You should be able to do this using a wrapper div along with min-width and eventually overflow, such as: http://jsfiddle.net/5zsyj/

    Try re-sizing the window, if the column is < 300px, it will show scroll-bars instead of just resizing the elements themselves, or floating above eachother.

提交回复
热议问题