LoginSignup
78
67

More than 5 years have passed since last update.

[css] 文字列の折り返し表示

Posted at

長い一つの文字列を要素の範囲内で折り返し表示させたい。
要するに
長い文字列を折り返す

↑こういうことをしたい。

対応

そのままでいい時
word-wrap: normal;
折り返す時
word-wrap: break-word;

<style>
p.hoge { word-wrap: normal; }
</style>

<p class="hoge">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</p>
78
67
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
78
67