mozilla

Revision 21034 of border-bottom-style

  • Revision slug: CSS/border-bottom-style
  • Revision title: border-bottom-style
  • Revision id: 21034
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 67 words added, 22 words removed

Revision Content

{{ CSSRef() }}

Summary

The border-bottom-style CSS property sets the line style of the bottom border of a box.

  • {{ Xref_cssinitial() }}: {{ Cssxref("none") }}
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: no
  • Percentages: N/A
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: as specified

Syntax

border-bottom-style: <border-style> | inherit
border-style
Is a keyword describing the style of the bottom border. It can have the following values:
none
fake
Like for the hidden keyword, displays no border. In that case, except if a background image is set, the calculated values of {{ cssxref("border-bottom-width") }} will be 0, even if specified otherwise through the property. In case of table cell and border collapsing, the none value has the lowest priority: it means that if any other conflicting border is set, it will be displayed.
hidden
fake
Like for the none keyword, displays no border. In that case, except if a background image is set, the calculated values of {{ cssxref("border-bottom-width") }} will be 0, even if specified otherwise through the property. In case of table cell and border collapsing, the hidden value has the highest priority: it means that if any other conflicting border is set, it won't be displayed.
dotted
fake
Displays a series of dots.
dashed
fake
Displays a series of short dashes or line segments.
solid
fake
Displays a single, straight, solid line.
double
fake
Displays two straight lines that add up to the pixel amount defined as {{ cssxref("border-width") }} or {{ cssxref("border-bottom-width") }}.
groove
fake
Displays a border leading to a carved effect. It is the opposite of ridge.
ridge
fake
Displays a border with a 3D effect, like if it is coming out of the page. It is the opposite of groove.
inset
fake
Displays a border that makes the box appear embedded. It is the opposite of outset.
outset
fake

Displays a border that makes the box appear in 3D, embossed. It is the opposite of inset.


Related properties

  • {{ Cssxref("border-left-style") }}
  • {{ Cssxref("border-right-style") }}
  • {{ Cssxref("border-top-style") }}
  • {{ Cssxref("border-style") }}

Examples

{{ CSSRefExampleLink("border") }}

element {
        border-bottom-size: 1px;
        border-bottom-style: dotted;
        border-bottom-color: #000;
}

Notes

Unless a border-style value is set, your border will not appear because the default value is set to 'none.'

Specifications

Browser Compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 1.0 5.5 9.2 1.0
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}

See Also

{{ Cssxref("border-bottom-style") }}, {{ Cssxref("border-bottom") }}, {{ Cssxref("border-bottom-color") }}, {{ Cssxref("border-bottom-width") }},

{{ languages( { "de": "de/CSS/border-bottom-style", "es": "es/CSS/border-bottom-style", "fr": "fr/CSS/border-bottom-style", "ja": "ja/CSS/border-bottom-style", "pl": "pl/CSS/border-bottom-style" } ) }}

Revision Source

<p>{{ CSSRef() }}</p>
<h3 name="Summary">Summary</h3>
<p>The <code>border-bottom-style</code> <a href="/en/CSS" title="CSS">CSS</a> property sets the line style of the bottom border of a box.</p>
<ul> <li>{{ Xref_cssinitial() }}: {{ Cssxref("none") }}</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>
<h3 name="Syntax">Syntax</h3>
<pre class="eval">border-bottom-style: &lt;border-style&gt; | inherit
</pre>
<dl> <dt><em>border-style</em></dt> <dd>Is a keyword describing the style of the bottom border. It can have the following values: <table class="standard-table"> <tbody> <tr> <td style="vertical-align:middle;"><code>none</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:none; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Like for the <code>hidden</code> keyword, displays no border. In that case, except if a background image is set, the calculated values of {{ cssxref("border-bottom-width") }} will be <code>0</code>, even if specified otherwise through the property. In case of table cell and border collapsing, the <code>none</code> value has the lowest priority: it means that if any other conflicting border is set, it will be displayed.</td> </tr> <tr> <td style="vertical-align:middle;"><code>hidden</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:hidden; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Like for the <code>none</code> keyword, displays no border. In that case, except if a background image is set, the calculated values of {{ cssxref("border-bottom-width") }} will be <code>0</code>, even if specified otherwise through the property. In case of table cell and border collapsing, the <code>hidden</code> value has the highest priority: it means that if any other conflicting border is set, it won't be displayed.</td> </tr> <tr> <td style="vertical-align:middle;"><code>dotted</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:dotted; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Displays a series of dots.</td> </tr> <tr> <td style="vertical-align:middle;"><code>dashed</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:dashed; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Displays a series of short dashes or line segments.</td> </tr> <tr> <td style="vertical-align:middle;"><code>solid</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:solid; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Displays a single, straight, solid line.</td> </tr> <tr> <td><code>double</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:double; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td>Displays two straight lines that add up to the pixel amount defined as {{ cssxref("border-width") }} or {{ cssxref("border-bottom-width") }}.</td> </tr> <tr> <td style="vertical-align:middle;"><code>groove</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:groove; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Displays a border leading to a carved effect. It is the opposite of <code>ridge</code>.</td> </tr> <tr> <td style="vertical-align:middle;"><code>ridge</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:ridge; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Displays a border with a 3D effect, like if it is coming out of the page. It is the opposite of <code>groove</code>.</td> </tr> <tr> <td style="vertical-align:middle;"><code>inset</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:inset; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;">Displays a border that makes the box appear embedded. It is the opposite of <code>outset</code>.</td> </tr> <tr> <td style="vertical-align:middle;"><code>outset</code></td> <td> <div style="margin:1em; width:5em; height:5em; border-bottom-style:outset; background-color:palegreen;"><span style="display:none;">fake</span></div> </td> <td style="vertical-align:middle;"> <p>Displays a border that makes the box appear in 3D, embossed. It is the opposite of <code>inset</code>.</p> </td> </tr> </tbody> </table> </dd> <br>
</dl><h3 name="Related_properties">Related properties</h3>
<ul> <li>{{ Cssxref("border-left-style") }}</li> <li>{{ Cssxref("border-right-style") }}</li> <li>{{ Cssxref("border-top-style") }}</li> <li>{{ Cssxref("border-style") }}</li>
</ul>
<h3 name="Examples">Examples</h3>
<p>{{ CSSRefExampleLink("border") }}</p>
<pre>element {
        border-bottom-size: 1px;
        border-bottom-style: dotted;
        border-bottom-color: #000;
}
</pre>
<h3 name="Notes">Notes</h3>
<p>Unless a border-style value is set, your border will not appear because the default value is set to 'none.'</p>
<h3 name="Specifications">Specifications</h3>
<ul> <li><a class="external" href="http://www.w3.org/TR/CSS21/box.html#propdef-border-bottom-style">CSS 2.1</a></li> <li><a class="external" href="http://www.w3.org/TR/css3-background/#border-style">CSS 3</a></li>
</ul>
<h3 name="Browser_Compatibility">Browser Compatibility</h3>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari</th> </tr> <tr> <td>Basic support</td> <td>1.0</td> <td>1.0</td> <td>5.5</td> <td>9.2</td> <td>1.0</td> </tr> </tbody> </table>
</div>
<div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</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>
<h3 name="See_Also">See Also</h3>
<p>{{ Cssxref("border-bottom-style") }}, {{ Cssxref("border-bottom") }}, {{ Cssxref("border-bottom-color") }}, {{ Cssxref("border-bottom-width") }},</p>
<p>{{ languages( { "de": "de/CSS/border-bottom-style", "es": "es/CSS/border-bottom-style", "fr": "fr/CSS/border-bottom-style", "ja": "ja/CSS/border-bottom-style", "pl": "pl/CSS/border-bottom-style" } ) }}</p>
Revert to this revision