Stop word-wrap in html

后端 未结 2 2004
滥情空心
滥情空心 2021-01-07 17:40

I don\'t want word wrap but this is being. I have set width more than text length but this is still breaking so how can I stop word break.

css

.menu{         


        
相关标签:
2条回答
  • 2021-01-07 18:10

    Try:

    .menu{
        white-space: nowrap;
    ...
    

    Add that to your CSS.

    0 讨论(0)
  • 2021-01-07 18:13

    In your css insert this:

    white-space:nowrap;
    
    0 讨论(0)
提交回复
热议问题