HTML & CSS Wiki
Advertisement

The line-break property is used in CSS and certain HTML elements for rendering content which is written in Japanese. The Japanese language has especially strict rules regarding the conditions and characters after which a line may be broken. This property controls whether or not this strict line-breaking behavior is used.

Values[]

Value Description
normal Normal line-breaking rules are applied to Japanese content.
strict Strict line-breaking rules are enforced for Japanese content.


HTML example:

<p style="line-break:strict;">Long bit of Japanese content that needs to wrap at some point.</p>


CSS example:

p {
   line-break:strict;
}

To enforce strict line-breaking for every paragraph, add the !important declaration to the CSS style:

p {
   line-break:strict !important;
}

Or you can add a custom ja id or class selector:

p#ja {
      line-break:strict;
}

p.ja {
      line-break:strict;
}
Advertisement