This content originally appeared on DEV Community and was authored by Google
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.
Read more: CSS grid layout Everything You need to know
This content originally appeared on DEV Community and was authored by Google
Google | Sciencx (2021-08-14T03:58:05+00:00) CSS Grid Layout For tips Frontend Developer. Retrieved from https://www.scien.cx/2021/08/14/css-grid-layout-for-tips-frontend-developer/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.