Fandom

HTML & CSS Wiki

Line-break

649pages on
this wiki
Add New Page
Comments0 Share

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;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.