diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:42:52 -0500 |
commit | 074785cea106179cb3305637055ab0a009ca74f2 (patch) | |
tree | e6ae371cccd642aa2b67f39752a2cdf1fd4eb040 /files/ru/web/css/border-bottom | |
parent | da78a9e329e272dedb2400b79a3bdeebff387d47 (diff) | |
download | translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.gz translated-content-074785cea106179cb3305637055ab0a009ca74f2.tar.bz2 translated-content-074785cea106179cb3305637055ab0a009ca74f2.zip |
initial commit
Diffstat (limited to 'files/ru/web/css/border-bottom')
-rw-r--r-- | files/ru/web/css/border-bottom/index.html | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/files/ru/web/css/border-bottom/index.html b/files/ru/web/css/border-bottom/index.html new file mode 100644 index 0000000000..e27f8f0fe8 --- /dev/null +++ b/files/ru/web/css/border-bottom/index.html @@ -0,0 +1,133 @@ +--- +title: border-bottom +slug: Web/CSS/border-bottom +translation_of: Web/CSS/border-bottom +--- +<div>{{CSSRef}}</div> + +<p><span class="seoSummary"><a href="/en-US/docs/Web/CSS/Shorthand_properties">Сокращённое свойство </a> <a href="/en-US/docs/Web/CSS">CSS</a> <strong><code>border-bottom </code></strong>описывает нижнюю границу элемента <a href="/en-US/docs/Web/CSS/border">border</a>.</span> Оно устанавливает значения {{cssxref("border-bottom-width")}}, {{cssxref("border-bottom-style")}} и {{cssxref("border-bottom-color")}}.</p> + +<div>{{EmbedInteractiveExample("pages/css/border-bottom.html")}}</div> + + + +<p>Как и все сокращённые свойства, <code>border-bottom</code> устанавливает значения всех свойств, которые он может установить, даже если они не указаны. Для тех свойств, которые не указаны оно устанавливает значения по умолчанию. Это означает, что ...</p> + +<pre class="brush: css notranslate">border-bottom-style: dotted; +border-bottom: thick green; +</pre> + +<p>... это то же самое, что ...</p> + +<pre class="brush: css notranslate">border-bottom-style: dotted; +border-bottom: none thick green; +</pre> + +<p>... и значение {{cssxref("border-bottom-style")}}, указанное перед <code>border-bottom</code> игнорируется. Поскольку значением по умолчанию для {{cssxref("border-bottom-style")}} является <code>none</code>, то без указания <code>border-style</code> граница не будет показана.</p> + +<h2 id="Constituent_properties">Constituent properties</h2> + +<p>This property is a shorthand for the following CSS properties:</p> + +<ul> + <li><a href="/en-US/docs/Web/CSS/border-bottom-color"><code>border-bottom-color</code></a></li> + <li><a href="/en-US/docs/Web/CSS/border-bottom-style"><code>border-bottom-style</code></a></li> + <li><a href="/en-US/docs/Web/CSS/border-bottom-width"><code>border-bottom-width</code></a></li> +</ul> + +<h2 id="Syntax">Syntax</h2> + +<pre class="brush: css no-line-numbers notranslate">border-bottom: 1px; +border-bottom: 2px dotted; +border-bottom: medium dashed blue; +</pre> + +<p>The three values of the shorthand property can be specified in any order, and one or two of them may be omitted.</p> + +<h3 id="Values">Values</h3> + +<dl> + <dt><code><br-width></code></dt> + <dd>See {{cssxref("border-bottom-width")}}.</dd> + <dt><code><br-style></code></dt> + <dd>See {{cssxref("border-bottom-style")}}.</dd> + <dt>{{cssxref("<color>")}}</dt> + <dd>See {{cssxref("border-bottom-color")}}.</dd> +</dl> + +<h2 id="Formal_definition">Formal definition</h2> + +<p>{{CSSInfo}}</p> + +<h2 id="Formal_syntax">Formal syntax</h2> + +<pre class="syntaxbox notranslate">{{csssyntax}}</pre> + +<h2 id="Examples">Examples</h2> + +<h3 id="Applying_a_bottom_border">Applying a bottom border</h3> + +<h4 id="HTML">HTML</h4> + +<pre class="brush: html notranslate"><div> + This box has a border on the bottom side. +</div></pre> + +<h4 id="CSS">CSS</h4> + +<pre class="brush: css notranslate">div { + border-bottom: 4px dashed blue; + background-color: gold; + height: 100px; + width: 100px; + font-weight: bold; + text-align: center; +} +</pre> + +<h4 id="Results">Results</h4> + +<p>{{EmbedLiveSample('Applying_a_bottom_border')}}</p> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('CSS3 Backgrounds', '#propdef-border-bottom', 'border-bottom')}}</td> + <td>{{Spec2('CSS3 Backgrounds')}}</td> + <td>No direct changes, though the modification of values for the {{cssxref("border-bottom-color")}} do apply to it.</td> + </tr> + <tr> + <td>{{SpecName('CSS2.1', 'box.html#propdef-border-bottom', 'border-bottom')}}</td> + <td>{{Spec2('CSS2.1')}}</td> + <td>No significant changes.</td> + </tr> + <tr> + <td>{{SpecName('CSS1', '#border-bottom', 'border-bottom')}}</td> + <td>{{Spec2('CSS1')}}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> + +<p>{{Compat("css.properties.border-bottom")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li><code><a href="/en-US/docs/Web/CSS/border">border</a></code></li> + <li><code><a href="/en-US/docs/Web/CSS/border-block">border-block</a></code></li> + <li><code><a href="/en-US/docs/Web/CSS/outline">outline</a></code></li> +</ul> |