mozilla

Revision 21080 of border-bottom

  • Revision slug: CSS/border-bottom
  • Revision title: border-bottom
  • Revision id: 21080
  • Created:
  • Creator: Qazzian
  • Is current revision? No
  • Comment /* Values */ - code tags

Revision Content

{{template.CSSRef()}}

Summary

The border-bottom property is a shorthand property for setting the individual border property values for the bottom border of the box model. border-bottom can be used to set the values for one or more of: {{template.Cssxref("border-bottom-color")}}, {{template.Cssxref("border-bottom-style")}}, and {{template.Cssxref("border-bottom-width")}}.

  • Initial value: see individual properties for details
  • Applies to: all elements
  • Inherited: no
  • Percentages: N/A
  • Media: visual
  • Computed value: see individual properties

Syntax

border-bottom: [border-bottom-width || border-bottom-style || 
       border-bottom-color || inherit]

Values

see border-bottom-width
{{template.Cssxref("border-bottom-width")}}
see border-bottom-style
{{template.Cssxref("border-bottom-style")}}
see border-bottom-color
{{template.Cssxref("border-bottom-color")}}

Examples

{{template.CSSRefExampleLink("border")}}

element { 
    border-bottom-width: 1px solid #000;
}

Notes

Specifications

Browser compatibility

Browser Lowest Version
Internet Explorer 4
Firefox 1
Netscape 4
Opera 3.5

See also

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

Revision Source

<p> 
{{template.CSSRef()}}
</p>
<h3 name="Summary"> Summary </h3>
<p>The <code>border-bottom</code> property is a shorthand property for setting the individual border property values for the bottom border of the box model. <code>border-bottom</code> can be used to set the values for one or more of: {{template.Cssxref("border-bottom-color")}}, {{template.Cssxref("border-bottom-style")}}, and {{template.Cssxref("border-bottom-width")}}.
</p>
<ul><li> Initial value: see individual properties for details
</li><li> Applies to: all elements
</li><li> Inherited: no
</li><li> Percentages: N/A
</li><li> Media: <a href="en/CSS/Media/Visual">visual</a>
</li><li> Computed value: see individual properties
</li></ul>
<h3 name="Syntax"> Syntax </h3>
<pre class="eval">border-bottom: [<i>border-bottom-width</i> || <i>border-bottom-style</i> || 
       <i>border-bottom-color</i> || <i>inherit</i>]
</pre>
<h3 name="Values"> Values </h3>
<dl><dt> see border-bottom-width</dt><dd> {{template.Cssxref("border-bottom-width")}}
</dd><dt> see border-bottom-style</dt><dd> {{template.Cssxref("border-bottom-style")}}
</dd><dt> see border-bottom-color</dt><dd> {{template.Cssxref("border-bottom-color")}}
</dd></dl>
<h3 name="Examples"> Examples </h3>
<p>{{template.CSSRefExampleLink("border")}}
</p>
<pre>element { 
    border-bottom-width: 1px solid #000;
}
</pre>
<h3 name="Notes"> Notes </h3>
<h3 name="Specifications"> Specifications </h3>
<ul><li> <a class="external" href="http://www.w3.org/TR/CSS1#border-bottom">CSS 1</a>
</li><li> <a class="external" href="http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties">CSS 2.1</a>
</li><li> <a class="external" href="http://www.w3.org/TR/css3-background/#the-border-shorthands">CSS 3</a>
</li></ul>
<h3 name="Browser_compatibility"> Browser compatibility </h3>
<table class="standard-table">
  <tbody><tr>
    <th>Browser</th>
    <th>Lowest Version</th>
  </tr>
  <tr>
    <td>Internet Explorer</td>
    <td>4</td>
  </tr>
  <tr>
    <td>Firefox</td>
    <td>1</td>
  </tr>
  <tr>
    <td>Netscape</td>
    <td>4</td>
  </tr>
  <tr>
    <td>Opera</td>
    <td>3.5</td>
  </tr>
</tbody></table>
<h3 name="See_also"> See also </h3>
<p>{{template.Cssxref("border")}},
{{template.Cssxref("border-bottom")}}, 
{{template.Cssxref("border-bottom-width")}}, 
{{template.Cssxref("border-bottom-style")}}, 
{{template.Cssxref("border-bottom-color")}},
</p>
Revert to this revision