How to not wrap contents of a div?

前端 未结 6 857
情歌与酒
情歌与酒 2020-12-22 21:33

I\'ve got a fixed-width div with two buttons in it. If the labels of the buttons are too long, they wrap – one button stays on the first line, and the nex

6条回答
  •  青春惊慌失措
    2020-12-22 22:07

    A combination of both float: left; white-space: nowrap; worked for me.

    Each of them independently didn't accomplish the desired result.

提交回复
热议问题