Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 1.28 KB

README.md

File metadata and controls

10 lines (7 loc) · 1.28 KB

What is CSS Grid?

CSS Grid Layout (aka “Grid” or “CSS Grid”), is a two-dimensional grid-based layout system that, compared to any web layout system of the past, completely changes the way we design user interfaces. CSS has always been used to layout our web pages, but it’s never done a very good job of it. First, we used tables, then floats, positioning and inline-block, but all of these methods were essentially hacks and left out a lot of important functionality (vertical centering, for instance). Flexbox is also a very great layout tool, but its one-directional flow has different use cases — and they actually work together quite well! Grid is the very first CSS module created specifically to solve the layout problems we’ve all been hacking our way around for as long as we’ve been making websites.

The intention of this guide is to present the Grid concepts as they exist in the latest version of the specification. So I won’t be covering the out-of-date Internet Explorer syntax (even though you can absolutely use Grid in IE 11) or other historical hacks. (Source: CSS Tricks)

Sumber belajar

  1. https://css-tricks.com/snippets/css/complete-guide-grid/
  2. https://www.w3schools.com/css/css_grid.asp
  3. https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout