Firefox unexpected line break using floats & overflow hidden

后端 未结 4 974
别那么骄傲
别那么骄傲 2020-12-16 14:55

I have a container div that holds two items: a .button and a .box with text inside. .button comes first and is floated right. .b

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-16 15:57

    I came across this issue today where the floating node would break line only in Firefox even after setting its display to inline-block and the reason for that was that the container node had a style setting of white-space set to nowrap. So resetting the value of white-space to normal on the container node resolved this issue for me.

提交回复
热议问题