{"id":35,"date":"2008-01-29T16:48:40","date_gmt":"2008-01-29T13:48:40","guid":{"rendered":"http:\/\/hatifnatt.ru\/blog\/2008\/01\/29\/sticky-footer\/"},"modified":"2011-06-04T18:56:03","modified_gmt":"2011-06-04T14:56:03","slug":"sticky-footer","status":"publish","type":"post","link":"https:\/\/hatifnatt.ru\/blog\/2008\/01\/29\/sticky-footer\/","title":{"rendered":"Sticky footer"},"content":{"rendered":"<p>\u041f\u0440\u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c &laquo;\u043f\u0440\u0438\u043a\u043b\u0435\u0438\u0442\u044c&raquo; \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0431\u043b\u043e\u043a \u043a \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0431\u0440\u043e\u0443\u0437\u0435\u0440\u0430. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b (\u0447\u0442\u043e \u0432\u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u0432 \u043a\u043e\u0440\u043d\u0435 \u043d\u0435 \u0432\u0435\u0440\u043d\u043e) \u0442\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0410 \u0432\u043e\u0442 \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u0431\u043b\u043e\u043a\u0430\u043c\u0438, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438, \u0442.\u043a. \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u0440\u043e\u0443\u0437\u0435\u0440\u043e\u0432 \u043a\u0430\u043a \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0440\u043e\u0443\u0437\u0435\u0440\u044b \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0435 &laquo;\u043f\u0440\u0438\u043a\u043b\u0435\u0438\u0432\u0430\u043d\u0438\u0435&raquo; \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0445\u0430\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0431\u044b\u0442\u044c \u043a\u0440\u043e\u0441\u0441\u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u043c\u0438, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u044b\u0445 \u043d\u0435 \u0440\u0430\u0437\u0432\u0430\u043b\u0438\u0442\u044c\u0441\u044f \u0441 \u0432\u044b\u0445\u043e\u0434\u043e\u043c \u043d\u043e\u0432\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b.<\/p>\n<p>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0435\u0441\u0442\u044c.  \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435, \u0445\u043e\u0442\u044f \u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u043e\u0435 \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u043a\u0430\u043c\u0438.<\/p>\n<p><!--more--><br \/>\n<strong>\u0421\u043f\u043e\u0441\u043e\u0431 \u21161<\/strong> <a class=\"external\" href=\"http:\/\/www.themaninblue.com\/writing\/perspective\/2005\/08\/29\/#content\">by The Man In Blue<\/a> \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 <a class=\"external\" href=\"http:\/\/qrayg.com\/learn\/code\/footerstick\/\">footerStick \u043e\u0442 solarDreamStudio&#39;s<\/a><\/p>\n<p>HTML \u043a\u043e\u0434:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;html&gt;\n  &lt;body&gt;\n    &lt;div id=&quot;nonFooter&quot;&gt;\n      &lt;div id=&quot;content&quot;&gt;\n      &lt;\/div&gt;\n    &lt;\/div&gt;\n    &lt;div id=&quot;footer&quot;&gt;\n    &lt;\/div&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n<p>CSS:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\nhtml { height: 100%; }\nbody { height: 100%; }\n#nonFooter {\n    position: relative;\n    min-height: 100%;\n}\n* html #nonFooter {\n    height: 100%;\n}\n#content {\n    padding-bottom: 9em;\n}\n#footer {\n    position: relative;\n    margin-top: -7.5em;\n}\n<\/pre>\n<p>\u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0442\u043e padding-bottom \u0443 #content \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043b\u0438 \u0440\u0430\u0432\u0435\u043d margin-top \u0443 #footer, \u0430 \u0435\u0441\u043b\u0438 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 #footer \u0431\u043b\u043e\u043a, \u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e position: static \u0438\u043d\u0430\u0447\u0435 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432\u0435\u0441\u0442\u0438 \u0441\u0435\u0431\u044f \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0430 \u044d\u0442\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0442.\u043a. \u044f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043f\u043e\u043b \u0447\u0430\u0441\u0430 \u043f\u043e\u043a\u0430 \u043f\u043e\u043d\u044f\u043b \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u043b\u043e\u043a \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 #footer \u043d\u0435 \u0445\u043e\u0447\u0435\u0442 \u0446\u0435\u043d\u0442\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u0430 \u0443\u043f\u043e\u0440\u043d\u043e \u0440\u0430\u0432\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u043b\u0435\u0432\u043e\u043c\u0443 \u043a\u0440\u0430\u044e.<br \/>\n\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 <a class=\"external\" href=\"http:\/\/www.themaninblue.com\/experiment\/footerStickAlt\/\">\u0442\u0443\u0442<\/a>, \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0432 FF 2.0.*+ \u0432 Opera 9.*+ \u0438 \u0432 IE6+<br \/>\n\u0418\u043b\u0438 \u043a\u0430\u043a \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0430 <a class=\"external\" href=\"http:\/\/www.themaninblue.com\/experiment\/footerStickAlt\/good_example_long.htm\">&laquo;\u0414\u043b\u0438\u043d\u043d\u044b\u0439&raquo; \u043a\u043e\u043d\u0442\u0435\u043d\u0442<\/a> <a class=\"external\" href=\"http:\/\/www.themaninblue.com\/experiment\/footerStickAlt\/good_example_short.htm\">&laquo;\u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0439&raquo; \u043a\u043e\u043d\u0442\u0435\u043d\u0442<\/a><\/p>\n<p><strong>\u0421\u043f\u043e\u0441\u043e\u0431 \u21162<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d  <a class=\"external\" href=\"http:\/\/ryanfait.com\/sticky-footer\/\">Ryan Fait<\/a><\/p>\n<p>\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 <a class=\"external\" href=\"http:\/\/ryanfait.com\/sticky-footer\/sticker.txt\">HTML \u043a\u043e\u0434\u043e\u043c<\/a> \u0438 \u0441 <a class=\"external\" href=\"http:\/\/ryanfait.com\/sticky-footer\/layout.css\">CSS \u043a\u043e\u0434\u043e\u043c<\/a><br \/>\n\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0441\u043f\u043e\u0441\u043e\u0431\u0443 (\u044d\u0442\u043e \u043a\u0441\u0442\u0430\u0442\u0438 \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043a css) \u043d\u0438\u0436\u043d\u0438\u0439 \u043e\u0442\u0441\u0442\u0443\u043f \u0443 .wrapper \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u0435\u043d \u0432\u044b\u0441\u043e\u0442\u0435 \u0443 .footer \u0438 \u0443 .push<br \/>\n\u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0442\u0430\u043a \u0436\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f FF 2.0.*+ \u0432 Opera 9.*+ \u0438 \u0432 IE6+<\/p>\n<p>\u041e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 sticky footer-\u0430 \u043d\u0430 <a class=\"external\" href=\"http:\/\/digg.com\/design\/A_CSS_Sticky_Footer\">Digg<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438 \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c &laquo;\u043f\u0440\u0438\u043a\u043b\u0435\u0438\u0442\u044c&raquo; \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0431\u043b\u043e\u043a \u043a \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0431\u0440\u043e\u0443\u0437\u0435\u0440\u0430. \u0415\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u044b (\u0447\u0442\u043e \u0432\u043e\u0431\u0449\u0435\u043c-\u0442\u043e \u0432 \u043a\u043e\u0440\u043d\u0435 \u043d\u0435 \u0432\u0435\u0440\u043d\u043e) \u0442\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u0410 \u0432\u043e\u0442 \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0432\u0435\u0440\u0441\u0442\u043a\u0435 \u0431\u043b\u043e\u043a\u0430\u043c\u0438, &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/hatifnatt.ru\/blog\/2008\/01\/29\/sticky-footer\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[27,8,25,26],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-howto","tag-css","tag-devel","tag-sticky-footer","tag-web"],"_links":{"self":[{"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":10,"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/posts\/35\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hatifnatt.ru\/blog\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}