mozilla

Revision 23837 of text-decoration-line

  • Revision slug: CSS/text-decoration-line
  • Revision title: text-decoration-line
  • Revision id: 23837
  • Created:
  • Creator: netfuzzer
  • Is current revision? No
  • Comment 10 words added

Revision Content

{{ CSSRef() }}

{{ CSSRef() }}

 

Summary

<marquee>This is a TEST.</marquee>

The text-decoration-line CSS property sets what kind of line decorations are added to an element.

  • {{ Xref_cssinitial() }}: none
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: no
  • Percentages: n/a
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: as specified

Syntax

text-decoration-line: none | underline || overline || line-through

Values

Accepts one or more whitespace separated values:

none
Produces no text decoration.
underline
Each line of text is underlined.
overline
Each line of text has a line above it.
line-through
Each line of text has a line through the middle.
-moz-anchor-decoration
Mozilla CSS Extension, not suitable for web content.

Notes

In contrast to {{ cssxref("text-decoration") }}, the -moz-text-decoration-line property does not accept the blink value. You might use {{ cssxref("-moz-text-blink") }} instead.

Examples

.example { 
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: red;
}

Browser compatibility

{{ CompatibilityTable() }}

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support {{ CompatGeckoDesktop("6.0") }}
(prefixed with -moz-)
{{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
Feature Firefox Mobile (Gecko) Android IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

Specifications

See also

{{ CSS_Reference:Text() }}

{{ languages( { "ja": "ja/CSS/text-decoration-line"} ) }}

Syntax

text-decoration-line: none | underline || overline || line-through

Values

Accepts one or more whitespace separated values:

none
Produces no text decoration.
underline
Each line of text is underlined.
overline
Each line of text has a line above it.
line-through
Each line of text has a line through the middle.
-moz-anchor-decoration
Mozilla CSS Extension, not suitable for web content.

Notes

In contrast to {{ cssxref("text-decoration") }}, the -moz-text-decoration-line property does not accept the blink value. You might use {{ cssxref("-moz-text-blink") }} instead.

Examples

.example { 
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: red;
}

Browser compatibility

{{ CompatibilityTable() }}

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support {{ CompatGeckoDesktop("6.0") }}
(prefixed with -moz-)
{{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
Feature Firefox Mobile (Gecko) Android IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

Specifications

See also

{{ CSS_Reference:Text() }}

{{ languages( { "ja": "ja/CSS/text-decoration-line"} ) }}

Revision Source

<p>{{ CSSRef() }}</p>
<p>{{ CSSRef() }}</p>
<p> </p>
<h2>Summary</h2>
&lt;marquee&gt;This is a TEST.&lt;/marquee&gt;
<p>The <code>text-decoration-line</code> CSS property sets what kind of line decorations are added to an element.</p>
<ul> <li>{{ Xref_cssinitial() }}: <code>none</code></li> <li>Applies to: all elements</li> <li>{{ Xref_cssinherited() }}: no</li> <li>Percentages: n/a</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}: as specified</li>
</ul>
<h2>Syntax</h2>
<pre class="eval">text-decoration-line: none | underline || overline || line-through
</pre>
<h2>Values</h2>
<p>Accepts <strong>one or more</strong> whitespace separated values:</p>
<dl> <dt>none</dt> <dd>Produces no text decoration.</dd> <dt>underline</dt> <dd>Each line of text is underlined.</dd> <dt>overline</dt> <dd>Each line of text has a line above it.</dd> <dt>line-through</dt> <dd>Each line of text has a line through the middle.</dd> <dt>-moz-anchor-decoration</dt> <dd><a href="/en/CSS/CSS_Reference/Mozilla_Extensions" title="en/CSS_Reference/Mozilla_Extensions">Mozilla CSS Extension</a>, not suitable for web content.</dd>
</dl>
<h2>Notes</h2>
<p>In contrast to {{ cssxref("text-decoration") }}, the <code>-moz-text-decoration-line</code> property does <strong>not</strong> accept the <code>blink</code> value. You might use {{ cssxref("-moz-text-blink") }} instead.</p>
<h2>Examples</h2>
<pre>.example { 
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: red;
}
</pre>
<h2>Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatGeckoDesktop("6.0") }}<br> (prefixed with <code>-moz-</code>)</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<h2>Specifications</h2>
<ul> <li><a class="external" href="http://dev.w3.org/csswg/css3-text/#text-decoration-line">CSS 3 Text #text-decoration-line</a> (Editor's Draft)</li>
</ul>
<h2>See also</h2>
<p>{{ CSS_Reference:Text() }}</p>
<p>{{ languages( { "ja": "ja/CSS/text-decoration-line"} ) }}</p>
<h2>Syntax</h2>
<pre class="eval">text-decoration-line: none | underline || overline || line-through
</pre>
<h2>Values</h2>
<p>Accepts <strong>one or more</strong> whitespace separated values:</p>
<dl> <dt>none</dt> <dd>Produces no text decoration.</dd> <dt>underline</dt> <dd>Each line of text is underlined.</dd> <dt>overline</dt> <dd>Each line of text has a line above it.</dd> <dt>line-through</dt> <dd>Each line of text has a line through the middle.</dd> <dt>-moz-anchor-decoration</dt> <dd><a href="/en/CSS/CSS_Reference/Mozilla_Extensions" title="en/CSS_Reference/Mozilla_Extensions">Mozilla CSS Extension</a>, not suitable for web content.</dd>
</dl>
<h2>Notes</h2>
<p>In contrast to {{ cssxref("text-decoration") }}, the <code>-moz-text-decoration-line</code> property does <strong>not</strong> accept the <code>blink</code> value. You might use {{ cssxref("-moz-text-blink") }} instead.</p>
<h2>Examples</h2>
<pre>.example { 
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: red;
}
</pre>
<h2>Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Firefox (Gecko)</th> <th>Chrome</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatGeckoDesktop("6.0") }}<br> (prefixed with <code>-moz-</code>)</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Firefox Mobile (Gecko)</th> <th>Android</th> <th>IE Phone</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> <td>{{ CompatUnknown() }}</td> </tr> </tbody> </table>
</div>
<h2>Specifications</h2>
<ul> <li><a class="external" href="http://dev.w3.org/csswg/css3-text/#text-decoration-line">CSS 3 Text #text-decoration-line</a> (Editor's Draft)</li>
</ul>
<h2>See also</h2>
<p>{{ CSS_Reference:Text() }}</p>
<p>{{ languages( { "ja": "ja/CSS/text-decoration-line"} ) }}</p>
Revert to this revision