38

Fun places to learn CSS Layout – Part 2: Grid Layout

 4 years ago
source link: https://www.tuicool.com/articles/vaQjU3U
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

2 years ago (gosh!) I wrote a small article with a few Fun places to learn CSS Layout –  Part 1: Flexbox . I have to be honest, I wanted to write the second part about Grid Layout for a while now but never really took the time to do so. I spoke about Grid Layout for the first time 6 years ago (gosh x2!) in my article about the The State Of Responsive Web Design in 2013. This spec caught my attention from the start, but is wasn’t quite ready at the time.

Since then, a lot has changed and now Grid Layout is supported in most major browsers . Credits where due, we owe Rachel Andrew and Jen Simmons a LOT when it comes to the Grid Layout specification!!! Grid Layout is an amazing set of CSS properties that will let you specify a grid layout system for you site with rows, columns and place your content accordingly. Pretty cool, right?

The syntax might be a little bit complex to learn if you come from good old floats, so here are some fun places, tutorials and sand box sites to help you learn and master everything you need to know about Grid Layout. Enjoy!

Games to learn CSS Grid Layout

Grid Garden

In this fun game you will have to use some CSS Grid Layout properties to water and take care of your garden. Each level of the game comes with some explanations on the different properties you can use to complete the level.

3IbY7zM.jpg!web

Grid Critters

A $139 game lesson with an awesome design that will teach you how to become a CSS Grid expert. I kind of wish there was a first “free” level so I could play around.

YfINBre.jpg!web

Bonus – CSS Diner

You can learn all the CSS Grid, FlexBox and other layout you want, if you can’t select what you need in the page, it’s no fun. The CSS selector game is a game with 32 levels that will let you you CSS selectors. Are you hungry? Made by @flukeout Nfm2iyE.jpg!web

CSS Grid Layout visual Playgrounds & Generators

Sometimes the best way to learn is to play with the code and properties directly in the browser. Those visual playground tools will let you build and play with grids to help you master the specs.

Grid by example

What better way to learn than to actually take a sneak peek under the code? This site (curated by Rachel Andrew ) is a nice collection of examples explained to achieve different layouts with CSS Grid Layout. yaiuiu3.jpg!web

Grid Visual Playground

A colorful playground that lets you play with an already build grid and test the different properties. Created by @alialaa . 2mUV3qr.jpg!web

CSS Grid Generator

A tool built by Sarah Edo to help you create and build you own grid system j2aMz2R.jpg!web

CSS Grid Layout Generator

Another tool to help you create grid templates in the browser. This one also supports regions! Created by Jacob Pratt . 2Araum7.jpg!web

CSS Grid Layout Cheatsheets

CSS Tricks’ A Complete Guide to Grid

A good introduction but also a useful cheat sheet with all the grid properties in one place on CSS Tricks . VBVZBzu.jpg!web

GRID: A simple visual cheatsheet for CSS Grid Layout

A nice visual cheat sheet that will also let you copy/paste properties when you click on them. created by Malven Co. Iveu6fJ.jpg!web

Fun demos

CSS Grid Floor Plan

Why not use CSS to map your house? A cool demo by Olivia Ng EvUFJzn.jpg!web

Show me videos!

Video – How to use CSS grid layout in 60 seconds!

In this fun video, Jenn Lukas shows you how to define columns and rows with the CSS grid layout module in 60 seconds.! 2ymeqqj.jpg!web

Layout Land – Videos on CSS Grid

This is a youtube playlist from the youtube channel Layout Land where Jen Simmons will explain you the basics of Grid Layout 7ZfAJrB.jpg!web

More resources

If you are looking for more traditional resources you can check

Are you looking for a UX or UI designer, for a site or mobile application? Do you want me to give a talk at your conference, or simply want to know more about me? You can take a look atmy portfolio and.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK