{"id":22,"date":"2020-06-02T01:38:00","date_gmt":"2020-06-02T05:38:00","guid":{"rendered":"https:\/\/davidgrzyb.com\/?p=22"},"modified":"2021-02-13T15:24:52","modified_gmt":"2021-02-13T20:24:52","slug":"place-fixed-footer-at-bottom-page-tailwind","status":"publish","type":"post","link":"https:\/\/davidgrzyb.com\/place-fixed-footer-at-bottom-page-tailwind\/","title":{"rendered":"Pushing a Fixed Footer to the Bottom of a Page with Tailwind"},"content":{"rendered":"\n
Since I started using TailwindCSS for my projects (including this blog<\/a>), I’ve quickly picked up a bunch of neat tricks to quickly build layouts I previously would have trouble building. One of these tricks is using Creating layouts and then realizing that when content wasn’t long enough, the footer would not be at the bottom of the browser window became really annoying. I couldn’t find a blog post detailing this properly, so here it is!<\/p>\n\n\n\n Here is a very simple, working demo of a footer that will stay at the bottom of the browser window. A detailed explanation of why this works is below.<\/p>\n\n\n\n \n See the Pen \n wvMvNxR<\/a> by David Grzyb (@davidgrzyb<\/a>)\n on CodePen<\/a>.<\/span>\n<\/p>\n.flex-grow<\/code> to push a fixed footer to the bottom of an otherwise empty page.<\/p>\n\n\n\n
A Working Example<\/h2>\n\n\n\n