[{"id":167612,"date":"2018-08-15T09:00:20","date_gmt":"2018-08-15T16:00:20","guid":{"rendered":"https:\/\/www.sitepoint.com\/?p=167612"},"modified":"2018-08-14T20:10:29","modified_gmt":"2018-08-15T03:10:29","slug":"css-grid-retrofit","status":"publish","type":"post","link":"https:\/\/www.sitepoint.com\/css-grid-retrofit\/","title":{"rendered":"Redesigning a Site to Use CSS Grid Layout"},"content":{"rendered":"

In this article, we\u2019re going to see CSS Grid in action by creating a responsive multi-column website layout.<\/strong><\/p>\n

CSS Grid is a new, hot trend in web development these days. Forget about table layouts and floats: a new way to design websites is already here! This technology introduces two-dimensional grids which define multiple areas of layout with a handful of CSS rules.<\/p>\n

Grid can make third-party frameworks such as 960gs<\/a> or Bootstrap grid<\/a> redundant, as you may easily do everything yourself! This feature is supported by all major browsers<\/a>, though Internet Explorer implements an older version of the specification.<\/p>\n

What We\u2019re Going to Build<\/h2>\n

So, we were asked to create a typical website layout with a header, main content area, sidebar to the right, a list of sponsors, and a footer:<\/p>\n

\"The<\/p>\n

Another developer has already tried to solve this task and came up with a solution that involves floats, display: table<\/code>, and some clearfix hacks. We\u2019re going to refer to this existing layout as “initial”:<\/p>\n

See the Pen SP: Multi-Column Layout With Floats<\/a> by SitePoint (@SitePoint<\/a>) on CodePen<\/a>.<\/p>\n