0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

テキストの折返しの制御

Last updated at Posted at 2018-03-19

レスポンシブで望む場所で改行させる

画面の横幅が狭くなることによって文節中に改行して見栄えが悪くなったり、文言の意味が理解しづらい状況になることがあります。それを防ぐための方法。

メディアクエリを利用

1.改行したい場所に<br class="">
2.メディアクエリで横幅が大きい時はdisplay: none;
横幅が狭くなって、変な場所で改行し始めたらdisplay: block;

inline-block

1.改行したい場所で分けてそれぞれdisplay: inline-block;でくくる

See the Pen PRbKXQ by aiyumi (@aiyumi) on CodePen.

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?