
Discover CSS grid as the two dimensional layout system following flexbox, decoupling markup from layout for maintainable, flexible grids, and learn to code your layouts with this CSS three feature.
Set up your browser and editor to build and visualize CSS grid layouts, using Firefox inspector to view an eight-column by three-row grid and Emmet to speed CSS coding.
Define a real grid by setting grid-template-rows and grid-template-columns, with explicit and auto sizes, and use the slash shorthand in grid-template to separate rows from columns.
Define gutters in CSS grid with grid-row-gap and grid-column-gap, apply consistent spacing between rows and columns, and use the grid-gap shortcut or set different values with explicit columns when needed.
Master the CSS grid repeat() function to create 12, 16, or 24 columns, name lines, and span items across columns without frameworks, for clean, scalable layouts.
Define a range of row and column sizes with minmax(), setting a minimum and maximum like 100px to 200px, and distribute remaining space using 1fr as an option.
Learn how auto fill in repeat generates grid columns until they can't fit, compare fixed, minmax, and auto sizing, and observe overflow and column counts as items fill the grid.
Explore how repeat(auto-fit) compares to auto-fill in CSS grid, using minmax and fr units to distribute remaining space and collapse empty columns for a flexible, prototype-ready layout.
Explore how to justify and align the CSS grid and its items, using familiar flexbox-like properties for simple vertical alignment with one line of code.
Master justify-content for the grid container, aligning on the horizontal axis with values such as center, start, stretch, auto, space around, and space between.
Override grid default alignments with justify-self and align-self to control individual item placement. Target specific items to start, center, or end, letting one item stand out.
Learn how the implicit grid in css scales with grid-auto-rows and grid-auto-columns, managing auto-sized implicit rows and columns to accommodate overflow items in an explicit grid.
Explore grid flow and how grid-auto-flow governs item placement by row or column, with dense mode to fill gaps, its relation to implicit grids, and shorthand notation.
Learn how to use the grid shorthand to define explicit grid and implicit grid with auto flow, auto columns, and auto rows, including grid gap behavior.
Explore nested grids, relative and absolute positioning, and overlapping grid items to see how css grid properties integrate with other parts of your css code.
You can assign multiple items on the same grid cell, making them overlap. The grid container doesn't prevent this and you may use this intentionally for your layouts.
This lecture explains how to create overlapping items and how to define their stack order.
Nested grids will be crucial in the future. You'll typically use CSS Grid for the overall site layout and then create nested grids inside that for any 2-dimensional layout components like galleries or reviews.
In this lecture, you'll learn how to use nested grids. Fortunately, it's very simple and works as you'd expect.
Absolutely positioned elements are an old feature of CSS. This lecture shows how to combine it with CSS Grid to highlight a grid area.
Grid items can be used as the relative context for absolutely positioned elements as well. This lectures teaches you how.
Prototype a website layout using CSS grids by defining header, main, aside, and footer as grid areas, then iterate with grid templates to optimize columns, gaps, and a sticky footer.
In this course, you'll...
What Students Say About My Web Design Courses
1) From my Flexbox course:
"Well explained. Efficient teaching. Great skill to learn for CSS. Already applying it to my code and saving time and headaches." - Shane
"Thanks to this course I've got the understanding that going to rework 70% of my current project just to optimize and even simplify the scripts and CSS.. time to wipe out few JS functions and referencing items =)" - Dmitriy
"It just works. I was able to create most of a "holy grail" style, responsive layout with NO extra CSS, and convert an existing template, reducing the code by 90%, in less than two hours after completing this course" - Paul
"Very clear and organized explanation about flexbox. It covers all you need to know about the topic. This is one of the few courses that claims to be "complete" and really is! Very well done! Thanks Peter." - Fabio
2) From my Sass course:
"Great course! Very useful and detailed!" - Vladislav
"This course provides an excellent in-depth look at how to get up and running using SASS/SCSS. I started with no experience using it and am now quite comfortable using it in all my projects. Highly recommended." - Jerry
"Really good course. The instructor was very knowledgeable about SASS/SCSS and was able to provide explanations and examples that were relatively easy to follow assuming you have a pretty good understanding of CSS. Would definitely recommend the course to anyone who has a basic understanding of SASS/SCSS and wants to learn even more." - John
What Else You Can Expect
As always, I'll answer all your questions inside the course to help you along the way.
There are many practice exercises included in this course for you to apply what you learn, along with my proposed solutions to look up on GitHub. So you'll get to apply and manifest your skills right away.
Remember there's a 30-day money-back guarantee so feel free to take a look inside the course with any risk. There are also several free preview lectures available for you to see if this course is for you.