Matching column height in 2column layout

前端 未结 3 1140
轮回少年
轮回少年 2021-01-16 17:14

My website uses 2 columns, but the only way I\'ve been able to get the columns height to match is to use a fixed height, but this presents a \"scrollbar in a scrollbar\" iss

3条回答
  •  自闭症患者
    2021-01-16 17:52

    The other solutions look a bit too complicated to me. How about this:

    Set both of your columns to transparent background and make a container for both of them with the desired background as alpha-transparent png.

    Maybe not the "cleanest" solution, but definitely a simple one. Looking at the website you linked, that's what I'd go with.

提交回复
热议问题