Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 645443 of line-break

  • Revision slug: Web/CSS/line-break
  • Revision title: line-break
  • Revision id: 645443
  • Created:
  • Creator: ishita
  • Is current revision? No
  • Comment grammar,typos

Revision Content

{{CSSRef}}{{SeeCompatTable}}

Summary

The line-break CSS property is used to specify how (or if) to break lines.

{{cssbox("line-break")}}

Syntax

Formal syntax: {{csssyntax("line-break")}}
line-break: auto
line-break: loose
line-break: normal
line-break: strict

line-break: inherit

Values

auto
break text using  the default line break rule.
loose
break text using the line break rule that the line is shorter like a newspaper.
normal
break text using the common line break rule.
strict
break text using the stringent line break rule.

Examples

{{todo}}

Specifications

Specification Status Comment
{{SpecName('CSS3 Text', '#line-break-property', 'line-break')}} {{Spec2('CSS3 Text')}}  

Browser compatibility

{{CompatibilityTable}}
Chrome Firefox (Gecko) Internet Explorer Opera Safari
1.0 {{CompatNo}} {{ bug("1011369") }} 5.5 {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
{{CompatVersionUnknown}} 18.0 {{CompatNo}} {{ bug("1011369") }} {{CompatUnknown}} {{CompatUnknown}} {{CompatVersionUnknown}}
  • IE8 introduced -ms-line-break as a synonym for line-break. Don't use the -ms- prefix.

See also

  • {{CSS_Reference:Text}}

Revision Source

<div>
 {{CSSRef}}{{SeeCompatTable}}</div>
<h2 id="Summary">Summary</h2>
<p>The <code>line-break</code> CSS property is used to specify how (or if) to break lines.</p>
<div>
 {{cssbox("line-break")}}</div>
<h2 id="Syntax">Syntax</h2>
<pre class="twopartsyntaxbox">
<a href="/en-US/docs/CSS/Value_definition_syntax" title="CSS/Value_definition_syntax">Formal syntax</a>: {{csssyntax("line-break")}}
</pre>
<pre>
line-break: auto
line-break: loose
line-break: normal
line-break: strict

line-break: inherit
</pre>
<h3 id="Values">Values</h3>
<dl>
 <dt>
  <code>auto</code></dt>
 <dd>
  break text using&nbsp; the default line break rule.</dd>
 <dt>
  <code>loose</code></dt>
 <dd>
  break text using the line break rule that the line is shorter like a newspaper.</dd>
 <dt>
  <code>normal</code></dt>
 <dd>
  break text using the common line break rule.</dd>
 <dt>
  <code>strict</code></dt>
 <dd>
  break text using the stringent line break rule.</dd>
</dl>
<h2 id="Examples">Examples</h2>
<p>{{todo}}</p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS3 Text', '#line-break-property', 'line-break')}}</td>
   <td>{{Spec2('CSS3 Text')}}</td>
   <td>&nbsp;</td>
  </tr>
 </tbody>
</table>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<div>
 {{CompatibilityTable}}</div>
<div id="compat-desktop">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Chrome</th>
    <th>Firefox (Gecko)</th>
    <th>Internet Explorer</th>
    <th>Opera</th>
    <th>Safari</th>
   </tr>
   <tr>
    <td>1.0</td>
    <td>{{CompatNo}} {{ bug("1011369") }}</td>
    <td>5.5</td>
    <td>{{CompatVersionUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
   </tr>
  </tbody>
 </table>
</div>
<div id="compat-mobile">
 <table class="compat-table">
  <tbody>
   <tr>
    <th>Android</th>
    <th>Chrome for Android</th>
    <th>Firefox Mobile (Gecko)</th>
    <th>IE Mobile</th>
    <th>Opera Mobile</th>
    <th>Safari Mobile</th>
   </tr>
   <tr>
    <td>{{CompatVersionUnknown}}</td>
    <td>18.0</td>
    <td>{{CompatNo}} {{ bug("1011369") }}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatUnknown}}</td>
    <td>{{CompatVersionUnknown}}</td>
   </tr>
  </tbody>
 </table>
</div>
<ul>
 <li>IE8 introduced<code> -ms-line-break </code>as a synonym for<code> line-break</code>. Don't use the <code>-ms-</code> prefix.</li>
</ul>
<h2 id="See_also">See also</h2>
<ul>
 <li>{{CSS_Reference:Text}}</li>
</ul>
Revert to this revision