text-decoration-style

  • Revision slug: CSS/text-decoration-style
  • Revision title: text-decoration-style
  • Revision id: 25107
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment 3 words added, 1 words removed

Revision Content

{{ CSSRef() }}

Summary

The text-decoration-style CSS property defines the style of the line(s) specified by {{ cssxref("text-decoration-line") }}.

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

Syntax

text-decoration-style: 	solid | double | dotted | dashed | wavy  | inherit

Values

solid
A single line is drawn.
double
Two parallel solid lines are drawn.
dotted
A series of round dots are drawn.
dashed
A dashed line is drawn.
wavy
A wavy line is drawn.
-moz-none {{ non-standard_inline() }}
No line is drawn.

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() }}

Revision Source

<p>{{ CSSRef() }}</p>
<h2>Summary</h2>
<p>The <code>text-decoration-style</code> CSS property defines the style of the line(s) specified by {{ cssxref("text-decoration-line") }}.</p>
<ul> <li>{{ Xref_cssinitial() }}: <code>solid</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-style: 	solid | double | dotted | dashed | wavy  | <a href="/en/CSS/inherit" title="en/CSS/inherit">inherit</a>
</pre>
<h2>Values</h2>
<dl> <dt>solid</dt> <dd>A single line is drawn.</dd> <dt>double</dt> <dd>Two parallel solid lines are drawn.</dd> <dt>dotted</dt> <dd>A series of round dots are drawn.</dd> <dt>dashed</dt> <dd>A dashed line is drawn.</dd> <dt>wavy</dt> <dd>A wavy line is drawn.</dd> <dt>-moz-none {{ non-standard_inline() }}</dt> <dd>No line is drawn.</dd>
</dl>
<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-style">CSS 3 Text #text-decoration-style</a> (Editor's Draft)</li>
</ul>
<h2>See also</h2>
<p>{{ CSS_Reference:Text() }}</p>
Revert to this revision