{"id":278379,"date":"2016-04-15T14:35:03","date_gmt":"2016-04-15T10:35:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=278379"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=278379","title":{"rendered":"\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438\u043b\u0438 \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0440\u043e margin"},"content":{"rendered":"<p>       \u041f\u043e \u043c\u043e\u0442\u0438\u0432\u0430\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/company\/netcracker\/blog\/281008\/\">\u00ab\u0420\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043e\u043b\u0435\u0439 \u0438 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0432 CSS\u00bb<\/a>. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0432 \u043a\u0443\u0440\u0441\u0435 \u0447\u0442\u043e \u0435\u0441\u0442\u044c <code>margin<\/code>, \u0438 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <a href=\"https:\/\/developer.mozilla.org\/ru\/docs\/Web\/CSS\/CSS_Box_Model\/Mastering_margin_collapsing\" title=\"Margin collapsing\">Margin collapsing<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/37a\/c35\/ec3\/37ac35ec37fe404098bdc42e2e0aa604.png\" alt=\"\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438\u043b\u0438 \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0440\u043e margin\" title=\"\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438\u043b\u0438 \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0440\u043e margin\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h1><font color=\"#e61a5e\">\u041f\u043e\u043c\u043e\u0449\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044e<\/font><\/h1>\n<p>  \u041e\u0442\u0441\u0442\u0443\u043f\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430 \u0441\u0447\u0451\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0430 \u043d\u0435 \u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f, \u0442.\u0435. \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0437\u0430 \u0441\u0447\u0451\u0442 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0438\u0445 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/232\/eed\/4b2\/232eed4b2e3e4d7d8e1e4d694b8ba575.png\" alt=\"\u041e\u0442\u0441\u0442\u0443\u043f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0437\u0430 \u0441\u0447\u0451\u0442 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\" title=\"\u041e\u0442\u0441\u0442\u0443\u043f \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u043c\u0438 \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u0437\u0430 \u0441\u0447\u0451\u0442 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432\"\/><\/p>\n<h1><font color=\"#e61a5e\">Margin \u0434\u043b\u044f padding<\/font><\/h1>\n<p>  \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0443\u043d\u043a\u0442\u0430, <code>margin<\/code> \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0443\u043b\u0435\u0432\u044b\u043c\u0438, \u0438\u0431\u043e \u0437\u0430\u0447\u0435\u043c? \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043e\u0442\u0441\u0442\u0443\u043f \u043e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0433\u0440\u0430\u043d\u0438\u0446 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>padding<\/code> \u0434\u043b\u044f \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c91\/d3b\/725\/c91d3b7254d74437b2d207e4efc37a16.png\" alt=\"Margin \u0434\u043b\u044f padding\" title=\"Margin \u0434\u043b\u044f padding\"\/><\/p>\n<h1><font color=\"#e61a5e\">Mixin \u0434\u043b\u044f \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430<\/font><\/h1>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0445\u0435\u043b\u043f\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 <code>margin<\/code> \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e <code>not()<\/code>, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a\u043e\u0439.<\/p>\n<pre><code class=\"css\">\/\/ Scss  @mixin ritm($valueTop, $valueBottom:$valueTop) {  \t@if $valueTop != 0 { \t\t@include not(':first-child') { \t\t\tmargin-top: $valueTop; \t\t\t} \t\t}  \t@if $valueBottom != 0 { \t\t@include not(':last-child') { \t\t\tmargin-bottom: $valueBottom; \t\t\t} \t\t} \t} <\/code><\/pre>\n<p>  <a href=\"https:\/\/github.com\/matovas\/scss-tools\/blob\/master\/ritm.scss\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<\/a>.<\/p>\n<h1><font color=\"#e61a5e\">\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442<\/font><\/h1>\n<p>  \u0412 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438, \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043f\u0430\u0440\u0430\u0433\u0440\u0430\u0444\u043e\u0432, \u0441\u043f\u0438\u0441\u043a\u043e\u0432, \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0442.\u043f. \u0412\u0441\u0451 \u044d\u0442\u043e \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a (\u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u044b\u0445) \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0412\u0441\u0435 \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0438 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 <abbr title=\"User Generated Content\">UGC<\/abbr>.<\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u044f\u0432\u043d\u043e\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 <code>margin<\/code> \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 UGC, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0431\u0435\u0437 \u0432\u0440\u0435\u0434\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430.<\/p>\n<pre><code class=\"css\">\/\/ Scss  .ui-h3 { \t@include ritm(1.5*$v, 1*$v); \t}  .ui-img { \t@include ritm(1*$v, 1.5*$v); \t \t.ui-h3 + & { \t\tmargin-top: 1.5*$v; \t\t} \t} \t <\/code><\/pre>\n<p>  <\/p>\n<h1><font color=\"#e61a5e\">Margin \u0438 Box-model<\/font><\/h1>\n<p>  \u0421\u0442\u043e\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0443, \u0447\u0442\u043e margin \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0442\u044a\u0435\u043c\u043b\u0435\u043c\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0431\u043b\u043e\u043a\u0430, \u0445\u043e\u0442\u044c \u0438 \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043d\u0435\u0447\u0442\u043e \u043f\u043e\u043f\u0443\u0442\u043d\u043e\u0435. \u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u043b\u043e\u043a\u0430, \u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0435\u0433\u043e \u0448\u0438\u0440\u0438\u043d\u0430, \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 width. Width \u2014 \u044d\u0442\u043e \u0448\u0438\u0440\u0438\u043d\u0430 \u0447\u0430\u0441\u0442\u0438 \u0431\u043e\u043a\u0441\u0430 \u043e\u0442 border \u0434\u043e border, \u043b\u0438\u0431\u043e \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u043e\u043a\u0441\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438. \u041f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u0431\u043e\u043a\u0441\u043e\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 (border-box \/ content-box), width \u043c\u043e\u0436\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f, \u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u043b\u043e\u043a\u0430 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u0435.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/dec\/daa\/e55\/decdaae55ad448c2b54e0ac9ef0bc6f1.png\" alt=\"Margin \u0438 Box-model\" title=\"Margin \u0438 Box-model\"\/>  <\/p>\n<blockquote><p>Each box has four edges: the margin edge, border edge, padding edge, and content edge.  <\/p><\/blockquote>\n<p>  <a href=\"http:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/CSS_Box_Model\/Introduction_to_the_CSS_box_model\">developer.mozilla.org \u2014\u00a0Introduction_to_the_CSS_box_model<\/a>  <\/p>\n<blockquote><p>\u0412 \u043d\u0435\u0439 \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u043e\u043a\u0441\u0430 \u0435\u0441\u0442\u044c 4 \u043e\u0431\u043b\u0430\u0441\u0442\u0438: margin (\u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b), border (\u0440\u0430\u043c\u043a\u0430), padding (\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043f\u043e\u043b\u044f), \u0438 content (\u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0438\u043b\u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435).  <\/p><\/blockquote>\n<p>  <a href=\"http:\/\/developer.mozilla.org\/ru\/docs\/Web\/CSS\/box_model\">developer.mozilla.org \u2014\u00a0box_model<\/a>  <\/p>\n<blockquote><p>Each box has a content area (e.g., text, an image, etc.) and optional surrounding padding, border, and margin areas;  <\/p><\/blockquote>\n<p>  <a href=\"http:\/\/www.w3.org\/TR\/CSS2\/box.html#box-dimensions\">www.w3.org \u2014 box-dimensions<\/a><\/p>\n<p>  \u0422\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430, \u0445\u043e\u043b\u0438\u0432\u0430\u0440\u0430 \u0440\u0430\u0434\u0438:<\/p>\n<p>  \u2014 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u043b\u043e\u043a\u0430 \u2260 border \u0431\u043b\u043e\u043a\u0430, \u0431\u043e\u0440\u0434\u0435\u0440 \u2014 \u044d\u0442\u043e border \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u043b\u043e\u043a\u0430 \u2014 \u044d\u0442\u043e \u0433\u0440\u0430\u043d\u0438\u0446\u0430\/\u043a\u0440\u0430\u0439 \u0431\u043b\u043e\u043a\u0430<br \/>  \u2014 block area = \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0431\u043b\u043e\u043a\u0430 (\u0447\u0438\u0442\u0430\u0439 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u043b\u043e\u043a\u0430), \u043d\u043e<br \/>  \u2014 block area \u2260 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u0430\u044f border&#8217;\u043e\u043c.<\/p>\n<p>  \u0427\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0430\u0443\u043a\u0430-\u043d\u0430\u0443\u043a\u043e\u0439, \u0430 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0432\u043d\u043e\u0441\u0438\u0442 \u0441\u0432\u043e\u0438 \u043f\u0440\u0430\u0432\u043a\u0438 \u0432 \u043b\u0435\u043a\u0441\u0438\u043a\u043e\u043d \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432.<\/p>\n<p>  PS. \u0414\u0430\u043d\u043d\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u043d\u043e\u0439 \u0431\u044b\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a \u0432\u044b\u0448\u0435\u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043d\u043e \u0441\u0442\u0440\u043e\u0433\u0438\u0439 \u041d\u041b\u041e \u0432\u044b\u0440\u0435\u0437\u0430\u043b \u0432\u0441\u0435 \u0442\u0435\u0433\u0438 \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0430\u0432.       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/281711\/\"> https:\/\/habrahabr.ru\/post\/281711\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u043e \u043c\u043e\u0442\u0438\u0432\u0430\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/company\/netcracker\/blog\/281008\/\">\u00ab\u0420\u0430\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u043e\u043b\u0435\u0439 \u0438 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0432 CSS\u00bb<\/a>. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e \u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u0432 \u043a\u0443\u0440\u0441\u0435 \u0447\u0442\u043e \u0435\u0441\u0442\u044c <code>margin<\/code>, \u0438 \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <a href=\"https:\/\/developer.mozilla.org\/ru\/docs\/Web\/CSS\/CSS_Box_Model\/Mastering_margin_collapsing\" title=\"Margin collapsing\">Margin collapsing<\/a>.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/37a\/c35\/ec3\/37ac35ec37fe404098bdc42e2e0aa604.png\" alt=\"\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438\u043b\u0438 \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0440\u043e margin\" title=\"\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438\u043b\u0438 \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u0440\u043e margin\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-278379","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=278379"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/278379\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=278379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=278379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=278379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}