diff options
| author | Ryan Johnson <rjohnson@mozilla.com> | 2021-04-29 16:16:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 16:16:42 -0700 |
| commit | 95aca4b4d8fa62815d4bd412fff1a364f842814a (patch) | |
| tree | 5e57661720fe9058d5c7db637e764800b50f9060 /files/uk/web/css/css_box_model | |
| parent | ee3b1c87e3c8e72ca130943eed260ad642246581 (diff) | |
| download | translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2 translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip | |
remove retired locales (#699)
Diffstat (limited to 'files/uk/web/css/css_box_model')
| -rw-r--r-- | files/uk/web/css/css_box_model/index.html | 162 | ||||
| -rw-r--r-- | files/uk/web/css/css_box_model/mastering_margin_collapsing/index.html | 91 |
2 files changed, 0 insertions, 253 deletions
diff --git a/files/uk/web/css/css_box_model/index.html b/files/uk/web/css/css_box_model/index.html deleted file mode 100644 index 5bd889607a..0000000000 --- a/files/uk/web/css/css_box_model/index.html +++ /dev/null @@ -1,162 +0,0 @@ ---- -title: Коробчаста модель CSS -slug: Web/CSS/CSS_Box_Model -tags: - - CSS - - Довідка - - Коробчаста модель CSS -translation_of: Web/CSS/CSS_Box_Model -original_slug: Web/CSS/Коробчаста_модель_CSS ---- -<div><strong>Коробчаста модель</strong> (box model) — це алгоритм CSS, що подає елементи (включно з їх {{cssxref("margin", "відступами")}} та {{cssxref("padding", "полями")}}) у вигляді прямокутних «коробок» та компонує їх відповідно до {{cssxref("Visual_formatting_model", "моделі візуального формування")}}.</div> - -<h2 id="Довідка">Довідка</h2> - -<h3 id="Властивості">Властивості</h3> - -<h4 id="Властивості_що_визначають_потік_(flow)_вмісту">Властивості, що визначають потік (flow) вмісту</h4> - -<div class="index"> -<ul> - <li>{{cssxref("box-decoration-break")}}</li> - <li>{{cssxref("box-sizing")}}</li> - <li>{{cssxref("overflow")}}</li> - <li>{{cssxref("overflow-x")}}</li> - <li>{{cssxref("overflow-y")}}</li> -</ul> -</div> - -<h4 id="Властивості_що_визначають_розміри">Властивості, що визначають розміри</h4> - -<div class="index"> -<ul> - <li>{{cssxref("height")}}</li> - <li>{{cssxref("width")}}</li> - <li>{{cssxref("max-height")}}</li> - <li>{{cssxref("max-width")}}</li> - <li>{{cssxref("min-height")}}</li> - <li>{{cssxref("min-width")}}</li> -</ul> -</div> - -<h4 id="Властивості_що_визначають_відступи">Властивості, що визначають відступи</h4> - -<div class="index"> -<ul> - <li>{{cssxref("margin")}}</li> - <li>{{cssxref("margin-bottom")}}</li> - <li>{{cssxref("margin-left")}}</li> - <li>{{cssxref("margin-right")}}</li> - <li>{{cssxref("margin-top")}}</li> -</ul> -</div> - -<h4 id="Властивості_що_визначають_поля">Властивості, що визначають поля</h4> - -<div class="index"> -<ul> - <li>{{cssxref("padding")}}</li> - <li>{{cssxref("padding-bottom")}}</li> - <li>{{cssxref("padding-left")}}</li> - <li>{{cssxref("padding-right")}}</li> - <li>{{cssxref("padding-top")}}</li> -</ul> -</div> - -<h4 id="Інші_властивості">Інші властивості</h4> - -<div class="index"> -<ul> - <li>{{cssxref("visibility")}}</li> -</ul> -</div> - -<h2 id="Посібники">Посібники</h2> - -<dl> - <dt><a href="/uk/docs/Web/CSS/CSS_Box_Model/Introduction_to_the_CSS_box_model">Вступ до коробчастої моделі CSS</a></dt> - <dd>Описує та пояснює одне з ґрунтовних понять в CSS — коробчасту модель. Ця модель визначає, як CSS розташовує елементи, їх вміст, {{cssxref("padding", "поля")}}, {{cssxref("border", "обрамок")}} та {{cssxref("margin", "відступи")}}.</dd> - <dt><a href="/uk/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing">Згортання відступів</a></dt> - <dd>Два прилеглі відступи інколи згортаються в один. Ця стаття наводить правила, за якими це відбувається, та пояснює, як цим керувати.</dd> - <dt><a href="/uk/docs/Web/CSS/Visual_formatting_model">Модель візуального формування</a></dt> - <dd>Описує та пояснює модель візуального формування.</dd> -</dl> - -<h2 id="Специфікації">Специфікації</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Специфікація</th> - <th scope="col">Статус</th> - <th scope="col">Коментар</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName("CSS3 Box")}}</td> - <td>{{Spec2("CSS3 Box")}}</td> - <td> </td> - </tr> - <tr> - <td>{{SpecName("CSS2.1", "box.html")}}</td> - <td>{{Spec2("CSS2.1")}}</td> - <td> </td> - </tr> - <tr> - <td>{{SpecName("CSS1")}}</td> - <td>{{Spec2("CSS1")}}</td> - <td>Первинне визначення</td> - </tr> - </tbody> -</table> - -<h2 id="Підтримка_веб-переглядачами">Підтримка веб-переглядачами</h2> - -<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 (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td>1.0</td> - <td>{{CompatGeckoDesktop("1")}}</td> - <td>3.0</td> - <td>3.5</td> - <td>1.0 (85)</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 Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>1.0</td> - <td>{{CompatGeckoMobile("1")}}</td> - <td>6.0</td> - <td>6.0</td> - <td>1.0</td> - </tr> - </tbody> -</table> -</div> diff --git a/files/uk/web/css/css_box_model/mastering_margin_collapsing/index.html b/files/uk/web/css/css_box_model/mastering_margin_collapsing/index.html deleted file mode 100644 index 44a6f7b56b..0000000000 --- a/files/uk/web/css/css_box_model/mastering_margin_collapsing/index.html +++ /dev/null @@ -1,91 +0,0 @@ ---- -title: Згортання відступів -slug: Web/CSS/CSS_Box_Model/Mastering_margin_collapsing -tags: - - CSS - - Коробчаста модель CSS - - Посібник -translation_of: Web/CSS/CSS_Box_Model/Mastering_margin_collapsing -original_slug: Web/CSS/CSS_Box_Model/Згортання_відступів ---- -<div dir="ltr">{{CSSRef}}</div> - -<p dir="ltr">The <a href="/en-US/docs/Web/CSS/margin-top">top</a> and <a href="/en-US/docs/Web/CSS/margin-bottom">bottom</a> margins of blocks are sometimes combined (collapsed) into a single margin whose size is the largest of the individual margins (or just one of them, if they are equal), a behavior known as <strong>margin collapsing</strong>. Note that the margins of <a href="/en-US/docs/Web/CSS/float">floating</a> and <a href="/en-US/docs/Web/CSS/position">absolutely positioned</a> elements never collapse.</p> - -<p dir="ltr">Margin collapsing occurs in three basic cases:</p> - -<dl> - <dt dir="ltr">Безпосередні (прилеглі) сусіди</dt> - <dd dir="ltr">The margins of adjacent siblings are collapsed (except when the latter sibling needs to be <a href="/en-US/docs/Web/CSS/clear">cleared</a> past floats).</dd> - <dt dir="ltr">Батько та перший/останній дочірній елемент</dt> - <dd dir="ltr">If there is no border, padding, inline part, {{cssxref("Block_formatting_context")}} created, or <em><a href="/en-US/docs/Web/CSS/clear">clearance</a></em> to separate the {{cssxref("margin-top")}} of a block from the {{cssxref("margin-top")}} of its first child block; or no border, padding, inline content, {{cssxref("height")}}, {{cssxref("min-height")}}, or {{cssxref("max-height")}} to separate the {{cssxref("margin-bottom")}} of a block from the {{cssxref("margin-bottom")}} of its last child, then those margins collapse. The collapsed margin ends up outside the parent.</dd> -</dl> - -<dl> - <dt dir="ltr">Порожні блоки</dt> - <dd dir="ltr">If there is no border, padding, inline content, {{cssxref("height")}}, or {{cssxref("min-height")}} to separate a block's {{cssxref("margin-top")}} from its {{cssxref("margin-bottom")}}, then its top and bottom margins collapse.</dd> -</dl> - -<p dir="ltr">More complex margin collapsing (of more than two margins) occurs when these cases are combined.</p> - -<p dir="ltr">These rules apply even to margins that are zero, so the margin of a first/last child ends up outside its parent (according to the rules above) whether or not the parent's margin is zero.</p> - -<p dir="ltr">When negative margins are involved, the size of the collapsed margin is the sum of the largest positive margin and the smallest (most negative) negative margin.</p> - -<p dir="ltr">When all margins are negative, the size of the collapsed margin is the smallest (most negative) margin. This applies to both adjacent elements and nested elements.</p> - -<h2 id="Приклади">Приклади</h2> - -<h3 id="HTML">HTML</h3> - -<pre class="brush: html"><p>The bottom margin of this paragraph is collapsed...</p> -<p>...with the top margin of this paragraph, yielding a margin of <code>1.2rem</code> in between.</p> - -<div>This parent element contains two paragraphs! - <p>This paragraph has a <code>.4rem</code> margin between it and the text above.</p> - <p>My bottom margin collapses with my parent, yielding a bottom margin of <code>2rem</code>.</p> -</div> - -<p>Blah blah blah.</p></pre> - -<h3 id="CSS">CSS</h3> - -<pre class="brush: css">div { - margin: 2rem 0; - background: lavender; -} - -p { - margin: .4rem 0 1.2rem 0; - background: yellow; -}</pre> - -<h3 id="Результат">Результат</h3> - -<p>{{EmbedLiveSample('Examples','100%',250)}}</p> - -<h2 dir="ltr" id="Специфікації">Специфікації</h2> - -<table class="standard-table" dir="ltr"> - <thead> - <tr> - <th scope="col">Специфікація</th> - <th scope="col">Статус</th> - <th scope="col">Коментар</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName("CSS2.1", "box.html#collapsing-margins", "margin collapsing")}}</td> - <td>{{Spec2("CSS2.1")}}</td> - <td>Первинне визначення</td> - </tr> - </tbody> -</table> - -<h2 dir="ltr" id="Див._також">Див. також</h2> - -<ul> - <li dir="ltr"><a href="/en-US/docs/Web/CSS/CSS_Reference">CSS Reference</a></li> - <li dir="ltr">{{css_key_concepts}}</li> -</ul> |
