Two floated columns - one fixed, one loose width

前端 未结 8 1145
醉酒成梦
醉酒成梦 2021-02-02 06:34

I\'ve looked around SO, but I cannot find one that matches my occurrence, I basically have two columns one fixed width (185px) and the other column has no fixed wid

8条回答
  •  心在旅途
    2021-02-02 06:57

    I had tried almost all of the above solution until i stumbled upon this, and it works wonderfully for me. How to make a div to fill a remaining horizontal space (a very simple but annoying problem for CSS experts)

    Not sure why, it seems you only need to float the column that has fixed width. The rest just fall in to place.

提交回复
热议问题