長いURLを改行する

ろん
ろん

長いURLを貼った時に、テーブルやレイアウトが崩れてしまうときがあります。

そんな時はword-break: break-all;をCSSで指定して、URLを改行させましょう。

word-breakプロパティとは

word-breakはテキストの改行について指定するプロパティです。。

word-break: normal;

初期値

重要なことは「ターゲットにいかに響き、どう届き、ちゃっとアクションしてもらえるか?」。ありきたりのデザインでは響きません。百社百色。個性強調、操作性、コンセプト表現など、オリジナリティあふれ20年以上追求したホームページ制作をご提供します。
The important thing is, "How does it resonate with your target, how does it reach you, how does it get you to take action?" It doesn't resonate with the usual design.100 companies, 100 colors. We offer home page production that is full of originality, including individuality, usability, and concept expression.
https://omakase.net/solution/accessibility.html

word-break: break-all;

単語の途中であっても改行されます。(中国語、台湾語、日本語、韓国語以外)

重要なことは「ターゲットにいかに響き、どう届き、ちゃっとアクションしてもらえるか?」。ありきたりのデザインでは響きません。百社百色。個性強調、操作性、コンセプト表現など、オリジナリティあふれ20年以上追求したホームページ制作をご提供します。
The important thing is, "How does it resonate with your target, how does it reach you, how does it get you to take action?" It doesn't resonate with the usual design.100 companies, 100 colors. We offer home page production that is full of originality, including individuality, usability, and concept expression.
https://omakase.net/solution/accessibility.html

word-break: keep-all;

単語の途中では改行されず、単語の切れ目で改行されます。

重要なことは「ターゲットにいかに響き、どう届き、ちゃっとアクションしてもらえるか?」。ありきたりのデザインでは響きません。百社百色。個性強調、操作性、コンセプト表現など、オリジナリティあふれ20年以上追求したホームページ制作をご提供します。
The important thing is, "How does it resonate with your target, how does it reach you, how does it get you to take action?" It doesn't resonate with the usual design.100 companies, 100 colors. We offer home page production that is full of originality, including individuality, usability, and concept expression.
https://omakase.net/solution/accessibility.html

word-break: break-word;

word-wrapやoverflow-wrapと同じ効果で、表示範囲からはみ出そうなときだけ単語の途中でも改行します。

重要なことは「ターゲットにいかに響き、どう届き、ちゃっとアクションしてもらえるか?」。ありきたりのデザインでは響きません。百社百色。個性強調、操作性、コンセプト表現など、オリジナリティあふれ20年以上追求したホームページ制作をご提供します。
The important thing is, "How does it resonate with your target, how does it reach you, how does it get you to take action?" It doesn't resonate with the usual design.100 companies, 100 colors. We offer home page production that is full of originality, including individuality, usability, and concept expression.
https://omakase.net/solution/accessibility.html

関連記事