Changes

Jump to: navigation, search

CSS GUIDE BORDER BOTTOM

2,648 bytes added, 16:53, 13 December 2006
no edit summary
== Summary ==

The '''border-bottom''' property is a shorthand property that sets the values of [[CSS_GUIDE_BORDER-BOTTOM-WIDTH | border-bottom-width]], [[CSS_GUIDE_BORDER-BOTTOM-STYLE | border-bottom-style]], and [[CSS_GUIDE_BORDER-BOTTOM-COLOR | border-bottom-color]]. These properties describe the bottom border of elements.

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

== Syntax ==

<pre>border-bottom: [ <border-width> || <border-style> || <border-color> ] | inherit</pre>

== Legal Values ==

'''border-width'''
* See [[CSS_GUIDE_BORDER-BOTTOM-WIDTH | border-bottom-width]].

'''border-style'''
* See [[CSS_GUIDE_BORDER-BOTTOM-STYLE | border-bottom-style]].

'''border-color'''
* See [[CSS_GUIDE_BORDER-BOTTOM-COLOR | border-bottom-color]].

== Mozilla Recommended Values ==

== Usage Examples ==

<pre>
element {
border-bottom-width: 1px solid #000;
}
</pre>

== Notes ==

The three values of the shorthand property can be specified in any order, and one or two of them may be omitted.

As with all shorthand properties, border-bottom always sets the values of all of the properties that it can set, even if they are not specified. It sets those that are not specified to their default values. This means that:

<pre>
border-bottom-style: dotted;
border-bottom: thick green;
</pre>

is actually the same as

<pre>
border-bottom-style: dotted;
border-bottom: none thick green;
</pre>

and the value of [[CSS_GUIDE_BORDER-BOTTOM-STYLE | border-bottom-style]] given before '''border-bottom''' is ignored.

Since the default value of [[CSS_GUIDE_BORDER-BOTTOM-STYLE | border-bottom-style]] is none, not specifying the <border-style> part of the value means that the property specifies no border.

== Specification Conformance ==

* [http://www.w3.org/TR/CSS1#border-bottom CSS 1]
* [http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties CSS 2.1]
* [http://www.w3.org/TR/css3-background/#the-border-shorthands CSS 3]

== Browser Compatibility ==

<table class="standard-table">
<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>
</table>

== See Also ==

[[CSS_GUIDE_BORDER | border]], [[CSS_GUIDE_BORDER-BOTTOM-WIDTH | border-bottom-width]], [[CSS_GUIDE_BORDER-BOTTOM-STYLE | border-bottom-style]], [[CSS_GUIDE_BORDER-BOTTOM-COLOR | border-bottom-color]]
1
edit

Navigation menu