how to stop CSS hyphenation, no dash between words

后端 未结 1 645
抹茶落季
抹茶落季 2021-02-08 22:07

How do I stop words becoming hyphenated

e.g: Supercalifragilis-
ticexpialidocious

should just be Supercalifragilisticexpialidocious

tried the css be

1条回答
  •  日久生厌
    2021-02-08 22:28

    try

    -webkit-hyphens:manual;
    -moz-hyphens:manual;
    hyphens:manual;
    

    putting them on auto is causing the issue

    also you can completely turn them off using

      -moz-hyphens: none;
      -ms-hyphens: none;
      -webkit-hyphens: none;
      hyphens: none;
    

    0 讨论(0)
提交回复
热议问题