{"id":135360,"date":"2026-07-23T11:07:04","date_gmt":"2026-07-23T05:07:04","guid":{"rendered":"https:\/\/rcl-radio.ru\/?p=135360"},"modified":"2026-07-23T11:07:04","modified_gmt":"2026-07-23T05:07:04","slug":"padding-%d0%b2%d0%bd%d1%83%d1%82%d1%80%d0%b5%d0%bd%d0%bd%d0%b8%d0%b5-%d0%be%d1%82%d1%81%d1%82%d1%83%d0%bf%d1%8b-%d0%b8-%d0%b8%d1%85-%d1%80%d0%be%d0%bb%d1%8c-%d0%b2-%d0%b1%d0%bb%d0%be%d1%87%d0%bd","status":"publish","type":"post","link":"https:\/\/rcl-radio.ru\/?p=135360","title":{"rendered":"Padding: \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b \u0438 \u0438\u0445 \u0440\u043e\u043b\u044c \u0432 \u0431\u043b\u043e\u0447\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 (CSS)"},"content":{"rendered":"<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u0435\u0440\u0441\u0442\u0430\u0435\u0448\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043b\u0435\u0433\u043a\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0441 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439: \u0437\u0430\u0434\u0430\u0451\u0448\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0448\u0438\u0440\u0438\u043d\u0443 300\u00a0px, \u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043e\u043d \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 340\u00a0px. \u0427\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u00a0\u2014\u00a0\u0432 <code class=\"CodeInlined\">padding<\/code>. \u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0438 \u043e\u043d\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0442\u043e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u0442\u0430 \u0431\u043b\u043e\u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435.<\/p>\n<hr \/>\n<h2>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 padding \u0438 \u043a\u0430\u043a \u043e\u043d \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u0432 box model<\/h2>\n<p>\u0411\u043b\u043e\u0447\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c (box model)\u00a0\u2014\u00a0\u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u00ab\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u00bb \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c \u0435\u0451 \u043a\u0430\u043a \u043d\u0430\u0431\u043e\u0440 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u0440\u043e\u0431\u043e\u043a:<\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><strong>Content<\/strong>\u00a0\u2014\u00a0\u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043a\u043e\u0440\u043e\u0431\u043a\u0430, \u0433\u0434\u0435 \u043b\u0435\u0436\u0438\u0442 \u0442\u0435\u043a\u0441\u0442 \u0438\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430. \u0415\u0451 \u0440\u0430\u0437\u043c\u0435\u0440 \u0442\u044b \u0437\u0430\u0434\u0430\u0451\u0448\u044c \u0447\u0435\u0440\u0435\u0437 <code class=\"CodeInlined\">width<\/code> \u0438 <code class=\"CodeInlined\">height<\/code>.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>Padding<\/strong>\u00a0\u2014\u00a0\u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430 \u0441\u0440\u0430\u0437\u0443 \u0432\u043e\u043a\u0440\u0443\u0433 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430. \u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u044b.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>Border<\/strong>\u00a0\u2014\u00a0\u0440\u0430\u043c\u043a\u0430 \u043f\u043e\u0432\u0435\u0440\u0445 padding.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>Margin<\/strong>\u00a0\u2014\u00a0\u0432\u043d\u0435\u0448\u043d\u044f\u044f \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u0442 \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u0435\u0439.<\/li>\n<\/ul>\n<p>\u0412\u0430\u0436\u043d\u043e: \u0444\u043e\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 padding, \u043d\u043e \u043d\u0435 \u043d\u0430 margin. \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0443 \u0431\u043b\u043e\u043a\u0430 \u0441\u0435\u0440\u044b\u0439 \u0444\u043e\u043d \u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 padding\u00a0\u2014\u00a0\u0441\u0435\u0440\u043e\u0435 \u043f\u043e\u043b\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u043d\u043e \u0438 \u0432\u043e\u043a\u0440\u0443\u0433 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430.<\/p>\n<hr \/>\n<h2>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0440\u0430\u0441\u0447\u0451\u0442 \u0448\u0438\u0440\u0438\u043d\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/h2>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c <code class=\"CodeInlined\">box-sizing: content-box<\/code>. \u0412 \u043d\u0435\u0439 <code class=\"CodeInlined\">width<\/code>\u00a0\u2014\u00a0\u044d\u0442\u043e \u0441\u0442\u0440\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u0430 \u0432\u0441\u0451 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043d\u0430\u0440\u0443\u0436\u0438.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 = <code class=\"CodeInlined\">width<\/code> + \u043b\u0435\u0432\u044b\u0439 <code class=\"CodeInlined\">padding<\/code> + \u043f\u0440\u0430\u0432\u044b\u0439 <code class=\"CodeInlined\">padding<\/code> + \u043b\u0435\u0432\u0430\u044f <code class=\"CodeInlined\">border<\/code> + \u043f\u0440\u0430\u0432\u0430\u044f <code class=\"CodeInlined\">border<\/code>.<br \/>\n\u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0432\u044b\u0441\u043e\u0442\u0430 = <code class=\"CodeInlined\">height<\/code> + \u0432\u0435\u0440\u0445\u043d\u0438\u0439 <code class=\"CodeInlined\">padding<\/code> + \u043d\u0438\u0436\u043d\u0438\u0439 <code class=\"CodeInlined\">padding<\/code> + \u0432\u0435\u0440\u0445\u043d\u044f\u044f <code class=\"CodeInlined\">border<\/code> + \u043d\u0438\u0436\u043d\u044f\u044f <code class=\"CodeInlined\">border<\/code>.<\/p>\n<p>\u042d\u0442\u043e \u0447\u0430\u0441\u0442\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043e\u0448\u0438\u0431\u043e\u043a: \u0442\u044b \u0434\u0443\u043c\u0430\u0435\u0448\u044c, \u0447\u0442\u043e \u0431\u043b\u043e\u043a 300\u00a0px, \u0430 \u043e\u043d \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0448\u0438\u0440\u0435.<\/p>\n<hr \/>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440: \u043a\u0430\u043a padding \u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u044b<\/h2>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0435\u0441\u0442\u044c \u0431\u043b\u043e\u043a:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">html<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span>div <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"box\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\u0422\u0435\u043a\u0441\u0442<span style=\"color: #66cc66;\">&lt;\/<\/span>div<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  .<span style=\"color: #006600;\">box<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    <span style=\"color: #0066cc;\">width<\/span>: 300px;\r\n    <span style=\"color: #0066cc;\">height<\/span>: 100px;\r\n    <span style=\"color: #0066cc;\">background<\/span>: <span style=\"color: #808080; font-style: italic;\">#3498db;<\/span>\r\n    <span style=\"color: #0066cc;\">color<\/span>: white;\r\n    padding: 25px;\r\n    <span style=\"color: #0066cc;\">border<\/span>: 5px solid <span style=\"color: #808080; font-style: italic;\">#2c3e50;<\/span>\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-135361\" src=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/7079817789578798732932.png\" alt=\"\" width=\"368\" height=\"170\" srcset=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/7079817789578798732932.png 368w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/7079817789578798732932-200x92.png 200w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/p>\n<p>\u0421\u0447\u0438\u0442\u0430\u0435\u043c \u0448\u0438\u0440\u0438\u043d\u0443:<\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><code class=\"CodeInlined\">width<\/code>: 300\u00a0px<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 <code class=\"CodeInlined\">padding<\/code>: 25 + 25 = 50\u00a0px<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f <code class=\"CodeInlined\">border<\/code>: 5 + 5 = 10\u00a0px<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0418\u0442\u043e\u0433\u043e: 300 + 50 + 10 = <strong>360\u00a0px<\/strong><\/li>\n<\/ul>\n<p>\u0412\u044b\u0441\u043e\u0442\u0430:<\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><code class=\"CodeInlined\">height<\/code>: 100\u00a0px<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 <code class=\"CodeInlined\">padding<\/code>: 25 + 25 = 50\u00a0px<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f <code class=\"CodeInlined\">border<\/code>: 5 + 5 = 10\u00a0px<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0418\u0442\u043e\u0433\u043e: 100 + 50 + 10 = <strong>160\u00a0px<\/strong><\/li>\n<\/ul>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u0431\u043b\u043e\u043a \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 360\u00d7160\u00a0px, \u0445\u043e\u0442\u044f \u044f\u0432\u043d\u043e \u0442\u044b \u0437\u0430\u0434\u0430\u043b 300\u00d7100\u00a0px.<\/p>\n<hr \/>\n<h2>Box-sizing: border-box \u2014 \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u044b\u043b\u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u044b\u043c\u0438<\/h2>\n<p>\u0427\u0442\u043e\u0431\u044b <code class=\"CodeInlined\">width<\/code> \u0432\u043a\u043b\u044e\u0447\u0430\u043b \u0432 \u0441\u0435\u0431\u044f padding \u0438 border, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 <code class=\"CodeInlined\">box-sizing: border-box<\/code>:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">css<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">*<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  box-sizing: border-box;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c <code class=\"CodeInlined\">width: 300px<\/code>\u00a0\u2014\u00a0\u044d\u0442\u043e \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u0431\u043b\u043e\u043a\u0430. \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0441\u0430\u043c \u00ab\u043f\u043e\u0434\u0440\u0435\u0436\u0435\u0442\u00bb \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u0447\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u0441\u0442\u0438\u043b\u0438\u0441\u044c padding \u0438 border.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0441 <code class=\"CodeInlined\">.box<\/code>:<\/p>\n<ul>\n<li data-value=\"\" data-shift=\"0\">\u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0448\u0438\u0440\u0438\u043d\u0430 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f 300\u00a0px.<\/li>\n<li data-value=\"\" data-shift=\"0\">\u0428\u0438\u0440\u0438\u043d\u0430 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430: 300 \u2212 50 (padding) \u2212 10 (border) = <strong>240\u00a0px<\/strong>.<\/li>\n<\/ul>\n<p>\u042d\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432\u0451\u0440\u0441\u0442\u043a\u0438: \u0442\u0430\u043a \u043f\u0440\u043e\u0449\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0442\u043a\u0438 \u0438 \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0431\u043b\u043e\u043a\u043e\u0432 \u043d\u0435 \u00ab\u0440\u0430\u0437\u044a\u0435\u0437\u0436\u0430\u044e\u0442\u0441\u044f\u00bb \u0438\u0437\u2011\u0437\u0430 \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432.<\/p>\n<hr \/>\n<h2>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438: \u0437\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d padding<\/h2>\n<p><strong>\u041a\u043d\u043e\u043f\u043a\u0438.<\/strong> \u0423 \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0435\u0442 \u0436\u0451\u0441\u0442\u043a\u043e\u0439 \u0448\u0438\u0440\u0438\u043d\u044b, \u043d\u043e \u0435\u0439 \u043d\u0443\u0436\u043d\u044b \u043e\u0442\u0441\u0442\u0443\u043f\u044b, \u0447\u0442\u043e\u0431\u044b \u0442\u0435\u043a\u0441\u0442 \u043d\u0435 \u043f\u0440\u0438\u043b\u0438\u043f\u0430\u043b \u043a \u043a\u0440\u0430\u044f\u043c \u0438 \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u043d\u0430\u0436\u0438\u043c\u0430\u0442\u044c:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">html<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #0066cc;\">button<\/span> <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"btn\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c<span style=\"color: #66cc66;\">&lt;\/<\/span>button<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  .<span style=\"color: #006600;\">btn<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    <span style=\"color: #0066cc;\">background<\/span>: <span style=\"color: #808080; font-style: italic;\">#27ae60;<\/span>\r\n    <span style=\"color: #0066cc;\">color<\/span>: <span style=\"color: #808080; font-style: italic;\">#fff;<\/span>\r\n    <span style=\"color: #0066cc;\">border<\/span>: none;\r\n    padding: 12px 20px;\r\n    font-<span style=\"color: #0066cc;\">size<\/span>: 16px;\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-135362\" src=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/23789737289378237232323.png\" alt=\"\" width=\"129\" height=\"57\" \/><\/p>\n<p>\u0417\u0434\u0435\u0441\u044c <code class=\"CodeInlined\">padding<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0443 \u0443\u0434\u043e\u0431\u043d\u043e\u0439: \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043a\u043b\u0438\u043a\u0430 \u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 \u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438.<\/p>\n<p><strong>\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0438.<\/strong> \u0412 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0435 padding \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043e\u0442 \u0440\u0430\u043c\u043a\u0438 \u0438 \u0444\u043e\u043d\u0430, \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0451 \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0439:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">html<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span>article <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"card\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>h3<span style=\"color: #66cc66;\">&gt;<\/span>\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a<span style=\"color: #66cc66;\">&lt;\/<\/span>h3<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  <span style=\"color: #66cc66;\">&lt;<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438 \u0441 \u0434\u0435\u0442\u0430\u043b\u044f\u043c\u0438.<span style=\"color: #66cc66;\">&lt;\/<\/span>p<span style=\"color: #66cc66;\">&gt;<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>article<span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  .<span style=\"color: #006600;\">card<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    <span style=\"color: #0066cc;\">background<\/span>: <span style=\"color: #808080; font-style: italic;\">#f9f9f9;<\/span>\r\n    <span style=\"color: #0066cc;\">border<\/span>: 1px solid <span style=\"color: #808080; font-style: italic;\">#e0e0e0;<\/span>\r\n    padding: 24px;\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-135363\" src=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/017872871708710708934343.png\" alt=\"\" width=\"484\" height=\"154\" srcset=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/017872871708710708934343.png 484w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/017872871708710708934343-200x64.png 200w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>\u0411\u0435\u0437 padding \u0442\u0435\u043a\u0441\u0442 \u0431\u044b \u00ab\u043f\u0440\u0438\u043b\u0438\u043f\u00bb \u043a \u0440\u0430\u043c\u043a\u0435, \u0438 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u0431\u044b \u0442\u0435\u0441\u043d\u043e\u0439.<\/p>\n<p><strong>\u0424\u043e\u0440\u043c\u044b.<\/strong> \u0412 \u043f\u043e\u043b\u044f\u0445 \u0432\u0432\u043e\u0434\u0430 padding \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u0446\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0438 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f:<\/p>\n<div class=\"CodeBlock CodeBlock_overflow_visible CodeBlock_highlight\">\n<div class=\"CodeBlock-StickyWrapper\">\n<div class=\"CodeBlock-Header\">\n<div class=\"CodeBlock-HeaderTitle\">html<\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 14px;\"><span style=\"color: #66cc66;\">&lt;<\/span>input <span style=\"color: #000000; font-weight: bold;\">class<\/span>=<span style=\"color: #ff0000;\">\"input\"<\/span> <span style=\"color: #0066cc;\">type<\/span>=<span style=\"color: #ff0000;\">\"text\"<\/span> placeholder=<span style=\"color: #ff0000;\">\"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u043a\u0441\u0442\"<\/span><span style=\"color: #66cc66;\">&gt;<\/span>\r\n\u00a0\r\n<span style=\"color: #66cc66;\">&lt;<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span>\r\n  .<span style=\"color: #006600;\">input<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    padding: 10px;\r\n    <span style=\"color: #0066cc;\">border<\/span>: 1px solid <span style=\"color: #808080; font-style: italic;\">#ccc;<\/span>\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">&lt;\/<\/span>style<span style=\"color: #66cc66;\">&gt;<\/span><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-135364\" src=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/23787238782372738920789347754890840934.png\" alt=\"\" width=\"202\" height=\"47\" srcset=\"https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/23787238782372738920789347754890840934.png 202w, https:\/\/rcl-radio.ru\/wp-content\/uploads\/2026\/07\/23787238782372738920789347754890840934-200x47.png 200w\" sizes=\"auto, (max-width: 202px) 100vw, 202px\" \/><\/p>\n<hr \/>\n<h2>\u041d\u044e\u0430\u043d\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043c\u043d\u0438\u0442\u044c<\/h2>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442.<\/strong> \u0415\u0441\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <code class=\"CodeInlined\">padding: -5px<\/code>, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u00ab\u0441\u0436\u0430\u0442\u0438\u044f\u00bb \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u0451\u043c\u044b.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041f\u0440\u043e\u0446\u0435\u043d\u0442\u044b \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f.<\/strong> <code class=\"CodeInlined\">padding: 5%<\/code> \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u0435\u043d 5\u00a0% \u043e\u0442 \u0448\u0438\u0440\u0438\u043d\u044b \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430, \u0430 \u043d\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041d\u0435\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f.<\/strong> \u0414\u043e\u0447\u0435\u0440\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 <code class=\"CodeInlined\">padding<\/code> \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e, \u0437\u0430\u0434\u0430\u0432\u0430\u0439 \u044f\u0432\u043d\u043e.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0424\u043e\u043d \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u0435\u0442 padding.<\/strong> \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e: \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0446\u0432\u0435\u0442\u043d\u043e\u0439 \u0431\u043b\u043e\u043a \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u0441\u0442\u0443\u043f, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043d\u0435 \u043a\u0430\u0441\u0430\u043b\u0441\u044f \u043a\u0440\u0430\u0451\u0432.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u0427\u0430\u0441\u0442\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u043a\u0430\u043a \u0438\u0445 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c<\/h2>\n<ul>\n<li data-value=\"\" data-shift=\"0\"><strong>\u041d\u0435 \u0443\u0447\u043b\u0438 padding \u043f\u0440\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0448\u0438\u0440\u0438\u043d\u0435.<\/strong> \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u0435\u0442\u043a\u0435 \u0438\u0437 \u0442\u0440\u0451\u0445 \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u043f\u043e 33.3% \u043a\u0430\u0436\u0434\u0430\u044f, \u043f\u043b\u044e\u0441 padding\u00a0\u2014\u00a0\u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u043d\u0435 \u0432\u043b\u0435\u0437\u0430\u044e\u0442. \u0420\u0435\u0448\u0435\u043d\u0438\u0435: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <code class=\"CodeInlined\">box-sizing: border-box<\/code> \u0438\/\u0438\u043b\u0438 <code class=\"CodeInlined\">calc()<\/code>.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0421\u043c\u0435\u0448\u0438\u0432\u0430\u044e\u0442 content-box \u0438 border-box \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435.<\/strong> \u041b\u0443\u0447\u0448\u0435 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0434\u0430\u0442\u044c <code class=\"CodeInlined\">* { box-sizing: border-box; }<\/code> \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 CSS \u0438 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u044d\u0442\u043e\u0433\u043e.<\/li>\n<li data-value=\"\" data-shift=\"0\"><strong>\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 padding \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445.<\/strong> \u041d\u0430 \u0441\u0435\u043d\u0441\u043e\u0440\u043d\u044b\u0445 \u044d\u043a\u0440\u0430\u043d\u0430\u0445 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043e\u0442\u0441\u0442\u0443\u043f \u0443 \u043a\u043d\u043e\u043f\u043e\u043a \u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u0434\u0435\u043b\u0430\u0435\u0442 \u0438\u0445 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b\u043c\u0438. \u041c\u0438\u043d\u0438\u043c\u0443\u043c 12\u201316\u00a0px \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438\u00a0\u2014\u00a0\u0445\u043e\u0440\u043e\u0448\u0430\u044f \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u0435\u0440\u0441\u0442\u0430\u0435\u0448\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043b\u0435\u0433\u043a\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u0441 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439: \u0437\u0430\u0434\u0430\u0451\u0448\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0448\u0438\u0440\u0438\u043d\u0443 300\u00a0px, \u0430 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043e\u043d \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 340\u00a0px. \u0427\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u00a0\u2014\u00a0\u0432 padding. \u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0438 \u043e\u043d\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0442\u043e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u0442\u0430 \u0431\u043b\u043e\u043a \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 padding \u0438 \u043a\u0430\u043a \u043e\u043d \u043b\u043e\u0436\u0438\u0442\u0441\u044f \u0432 box model \u0411\u043b\u043e\u0447\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c (box model)\u00a0\u2014\u00a0\u044d\u0442\u043e \u0441\u043f\u043e\u0441\u043e\u0431, \u043a\u043e\u0442\u043e\u0440\u044b\u043c [&hellip;]<\/p>\n","protected":false},"author":9194254,"featured_media":135361,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[463],"tags":[],"class_list":["post-135360","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"views":6,"_links":{"self":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/9194254"}],"replies":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=135360"}],"version-history":[{"count":1,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135360\/revisions"}],"predecessor-version":[{"id":135365,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/135360\/revisions\/135365"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/135361"}],"wp:attachment":[{"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=135360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=135360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=135360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}