We may earn an affiliate commission when you visit our partners.
Course image
Daryl Duckmanton

CSS Grid is a relatively new and unused concept to CSS. It's very important these days that our layouts are simple to maintain, and easy to adjust based on the dimensions of our device. CSS grid simplifies this process over other existing strategies.

Read more

CSS Grid is a relatively new and unused concept to CSS. It's very important these days that our layouts are simple to maintain, and easy to adjust based on the dimensions of our device. CSS grid simplifies this process over other existing strategies.

In this course we take you deep into how to build a variety of different layouts in CSS Grid. We cover the following:-

  1. All the properties in CSS Grid, how they work, and any gotchas that you may not be aware of when using them.

  2. Alignment and how it works in CSS Grid, including the alignment of tracks and grid items at the grid container level. We also show you how to override alignment at the grid item level.

  3. The basics of responsive web design, such as media queries and how they work with mobile / tablet etc.

  4. Grid areas and how it helps simplify responsive web design

  5. The concept of implicit and explicit grids and what the differences are

  6. A deep look into the Autoplacement algorithm

  7. Animation at a high level and what works currently with CSS Grid

  8. How to convert some layouts in Flexbox to use CSS Grid instead

  9. When to use Flexbox over CSS Grid

Once we cover all of these concepts, we then go about showing you some basic layout problems and how they can be solved. This includes:-

  1. Column based layout

  2. Basic Sidebar layout

  3. Vertical Text alignment

  4. Modal alignment

  5. Stick footer layout

  6. Formatting form fields

And hopefully in future much more. We then look at some advance layout topics such as:-

  1. The Holygrail layout

  2. The Media Objects layout

  3. A Viewport Friendly Image Gallery

  4. A Responsive Image Gallery

  5. An Animated Sidebar

  6. A Monthly Calendar layout

  7. A Newspaper Cover layout

  8. A Responsive Twitter Clone Layout

  9. A Responsive Movie Gallery

Then if you haven't had enough, we have 3 real life application examples that will give you the experience you need. They are:-

  1. A Chat UI interface

  2. An Uber Eats Clone Responsive Application

  3. A YouTube Clone Responsive Application

Enroll now

What's inside

Learning objectives

  • How to implement responsive layouts using css grid
  • How to build regular layouts in css grid
  • All properties that are part of the css grid specification
  • How to build commonly used sites such as youtube using css grid

Syllabus

Introduction

Welcome to the course Mastering CSS Grid

In this video I talk about what the requirements are for taking this course.

Read more

In this video I talk about the best way to rate and review this course.

In this video we look at what CSS Grid is and how it is beneficial for layouts. We also cover some terminology and browser support.

In this section you will learn how to create a Grid Container and all the ways we can define rows and columns.

In this video, you will learn how to create your very first Grid Container. We will look at both types of Grid Containers as well.

In this video you will learn how to specify the number of rows and columns for your grid, and their respective sizes.

In this video we take a first look at the grid property and how we can use it to define our rows and columns.

In this video we look at how we can size our row and column tracks using pixels and percentages.

In this video we look at how we can size our row and column tracks using em and rem units.

In this video we look at how we can size our row and column tracks using vw, vh, vmax and vmin units.

In this video we will cover the special auto value that we can use for the size of our row and column tracks.

In this video we will cover the new fraction (fr) unit and how we can use it to allocate remaining space to grid items.

In this video we quickly cover the similarities and differences between using the auto value vs using fractions when sizing our grid tracks.

In this video we will cover how we can set a minimum and a maximum size of a grid track using the new minmax function.

In this video I quickly cover some of the gotchas that I found when using the minmax function.

In this video I quickly cover what the special min-content and max-content values do when using them for sizing our grid tracks.

In this video I cover the new fit-content function, which gives us the ability to set a max limit of a column tracks regardless of how much text exists in each grid item for that column.

In this video we look at the new repeat function, what a track list is, and how we can use both of these concepts together to simplify of row and column definitions.

In this video we look at Grid Gaps, and how we can set up different gap sizes between both column and row tracks.

I quickly explain the changes to grid-column-gap, grid-row-gap and grid-gap.

In this video I quickly show you how you can nest a grid container inside of a grid item of another grid container.

Just a quick note on nesting and how grid items can also be grid containers.

Controlling Grid Items

In this video we take a look at the first way we can move grid items around in our grid container. We can order them using the order property.

In this video we look at how we can explicit set which column track a specific grid item could be placed inside of a grid container.

In this video we look at how we can explicit set which row track a specific grid item could be placed inside of a grid container.

In this video we look at how we can explicit set exactly which grid cell a grid item could be placed, inside of a grid container..

In this video we look at how we can make grid items span over multiple column tracks, row tracks, or both.

In this video we look at the special span keyword, and how we can use it simplify the spanning of grid items inside a grid container.

In this video, we quickly cover the gotchas that I noticed when spanning grid items inside of a grid container.

In this video we cover how to name grid lines and how to use these line names to place our grid items.

In this video we cover how to use line names to assist with spanning grid items.

In this video we cover how to give multiple line names to the same grid line.

In this video we cover how we can use line names in conjunction with the repeat function.

In this video we look at the grid-column property, and how we can use it to simplify both positioning and spanning grid items along column tracks.

In this video we look at the grid-row property, and how we can use it to simplify both positioning and spanning grid items along row tracks.

In this video we look at the grid-area property, and how we use it to place grid items into specific cells in the grid.

In this video we look at how the grid-area is used to span grid items over both column and row tracks.

In this video, we update our knowledge on the grid property, by learning how to specify line names when using it.

Controlling Alignment

In this video we cover how to change the alignment / distribution, of all our row tracks in our grid container.

In this video we cover how to change the alignment / distribution, of all our column tracks in our grid container.

In this video we look at the place-content property, and how we can use it to control the alignment / distribution of both row and column tracks.

In this video we look at how to vertically align the content inside of all our grid items of a grid container.

In this video we look at how to horizontally align the content inside of all our grid items of a grid container.

In this video we look at the place-items property, and how we can use it to control the alignment of content inside of all our grid items of a grid container from both a vertical and horizontal direction.

In this video we look at how to vertically align the content inside of an individual grid item.

In this video we look at how to horizontally align the content inside of an individual grid item.

In this video we look at how to both vertically and horizontally align the content inside of an individual grid item.

Responsive Grids

In this video we quickly review media queries. A concept needed to understand responsive web design. This is needed so we can properly configure CSS Grid over different device sizes.

In this video, we quickly cover how we can prepare our HTML files so that on mobile it will display appropriately.

In this video, we learn how to position grid items using the concept of areas. Areas are used to simplify the positioning of items over different device sizes.

In this video, we now cover how to span grid items using areas.

In this video we cover how to mask a specific grid cell in our grid container as empty using areas.

In this video we cover some of the gotchas that you have to look out for when using grid-template-areas property.

In this video we learn another clever way of making a responsive grid, by just using the repeat function.

In this video we once again review the grid property, taking the concepts covered in this section and applying it to this property.

Implicit Grids and Autoplacement

In this video we get a clearer understand of the difference between what is deemed an explicit grid, and what is implicit.

In this video I quick introduce the Autoplacement Algorithm and define all the criteria that makes it up.

In this video I quickly cover what Flow means in regards to the Autoplacement algorithm and the options you have available.

In this video we show you how to change the flow of items inside of your grid container using the grid-auto-flow property. We then talk a little more about how items flow inside of the container and also how to size implicit column tracks.

In this video we go over the algorithm used to determine the order to which grid items are placed inside our grid containers.

In this video we talk about the concept of locking and how it affects how grid items are placed within our grid containers.

In this video we extend our knowledge from the previous video and look at locking from a practical level.

In this video I explain how the grid-template-areas and grid-area properties can be visualised to our locking examples but using line names instead of numbers.

In this video I go through some practical examples of how locking works when using the grid-template-areas and grid-area properties.

In this video I explain Grid Spans and how it affects the placement of grid items

In this video we look at some practical examples of how grid spanning works.

In this video I quickly explain what sparse and dense packing is and how it affects how items are placed inside a grid container.

In this video we look at how to change the packing using the grid-auto-flow property.

In this video we put all the knowledge over the last few videos to get a better understanding of the Autoplacement Algorithm

In this video we continue looking at examples to better understand the Autoplacement Algorithm

In this video we take all the learning we have gathered in this section and apply them to the grid property.

In this video we look at a few gotchas that you might run into when setting certain Autoplacement values on the grid property.

CSS Grid Extras

In this video I quickly show you the grid-template property and why you should not use it anymore.

In this video we compare how absolute positioning works in a grid container vs a regular block level element.

In this video, I give you a current snapshot of the animations that are supported with CSS Grid.

In this video we take a look at some layouts that are built using Flexbox and convert them to use CSS Grid instead.

In this video we continue on from the last video, looking at some more layouts that are built using Flexbox, and converting them to grids.

In this video I show you when it's the right situation to use Flexbox over CSS Grid.

Just a quick note grid items and how they can be sized.

In this video we look at the box model properties of an individual grid item and see how changing them affects itself and its parent container.

Some Simple Layouts

In this video I show you a couple of ways of setting up a 4 column layout using CSS Grid.

In this video we cover the simple problem of building a layout that contains a simple sidebar on the left, followed with the main content on the right.

In this video we look at a couple of ways of controlling the vertical alignment of text using CSS Grid.

In this video we look at how we can create a modal dialog and center it into the middle of the screen using CSS Grid.

In this video we look at how we can implement a sticky footer easily using CSS Grid.

In this video we look at how to format a typical form, and align both labels and their associated controls.

Some Advanced Layouts

In this video we look at how to build out a common layout, known as the Holygrail layout.

In this video we look at how to build a comment layout used on social media sites. The Media Objects layout.

In this video we look at how to build a nice viewport friendly movie gallery using CSS grid and the viewport units.

In this video we look at once again how to build a viewport friendly movie gallery, but this time using the auto-fit keyword.

In this video we look at how to animate a sidebar / drawer that is set up using CSS Grid.

Good to know

Know what's good
, what to watch for
, and possible dealbreakers
Develops advanced technical skills in a core web development concept, focusing on layout and alignment
Taught by Daryl Duckmanton, who is recognized for their work in web development
Suitable for learners with at least some prior experience in CSS and web development
Covers both basic and advanced concepts in CSS Grid, making it suitable for both beginners and intermediate learners
Includes hands-on labs and interactive materials to reinforce learning

Save this course

Save Mastering CSS Grid 2023 - With 3 cool projects to your list so you can find it easily later:
Save

Activities

Be better prepared before your course. Deepen your understanding during and after it. Supplement your coursework and achieve mastery of the topics covered in Mastering CSS Grid 2023 - With 3 cool projects with these activities:
Review Grid Concepts
Review the basic concepts of CSS Grid as a way to help remember the topics as they get introduced in the course.
Browse courses on CSS Grid
Show steps
  • Review notes or online resources on CSS Grid to refresh your understanding of the basic concepts.
  • Complete some practice exercises to test your understanding of the material.
Compile materials for review
Begin by gathering all materials you have for the course from schedules, to syllabi, to notes, to previous assignments and quizzes.
Show steps
  • Gather course materials and collate them into a single folder or location for easy access
  • Review the course syllabi and make a note of important topics and assignments due dates.
  • Make note of any questions or areas of confusion you have as you review the course materials
Networking
Attend industry events to connect with other students, professionals, and potential employers.
Browse courses on Career Development
Show steps
  • Attend events and actively participate in discussions
  • Find local meetups or online communities related to your interests
  • Connect with people on LinkedIn and other professional networking sites
Three other activities
Expand to see all activities and additional details
Show all six activities
Brainstorm responsive layout ideas
Brainstorm a list of ideas of sites that use responsive layouts. Start with simple pages that incorporate grids, then move onto more complex layouts.
Browse courses on Responsive Design
Show steps
  • Spend some time browsing websites to get an idea of different responsive layout techniques
  • Sketch out some ideas for responsive layouts, focusing on using CSS Grid
  • Research different CSS Grid properties to see how they can be used to create responsive layouts
Practice exercises
Complete a series of practice exercises to reinforce your understanding of the course material.
Browse courses on CSS Grid
Show steps
  • Find practice exercises online or in a textbook.
  • Complete the exercises and check your answers.
Build a simple website using CSS Grid
Develop a project such as a simple website to consolidate your understanding of how CSS Grid works in action.
Browse courses on CSS Grid
Show steps
  • Plan the layout of your website using CSS Grid.
  • Code your website using HTML and CSS.
  • Test your website on different devices to ensure it is responsive.

Career center

Learners who complete Mastering CSS Grid 2023 - With 3 cool projects will develop knowledge and skills that may be useful to these careers:
Web Developer
CSS Grid is an essential technology for web developers. Those who are serious about coding will need to understand and use CSS Grid in their work. This course can greatly help you build up a foundation in working with CSS Grid and using it to build beautiful modern user interfaces. You will learn about everything from setting up columns and rows to aligning elements and using the auto-placement algorithm. By the end of this course, you will be able to create amazing and responsive layouts using CSS Grid, making you a better web developer in the process.
Front-End Developer
Front-end developers specialize in designing and coding a website's user interface. This involves creating elements that are both visually appealing and functional. To do this front-end developers need a strong foundation in CSS Grid so they can correctly align and arrange the different elements that make up a user interface. This course will help build your foundation in CSS Grid so you can create great looking user interfaces and succeed as a front-end developer.
UX Designer
UX designers create prototypes and mockups of a website's or app's user interface. To do this they must have a solid understanding of how users interact with a website and the underlying principles behind this interaction. The skills you will learn in this course on CSS Grid will help you create more accurate and visually appealing prototypes and mockups for your clients and team members.
UI Designer
UI designers create the visual elements of a website or app. This includes choosing colors, fonts, and images, as well as laying out the different elements on the page. A solid understanding of CSS Grid can help you create more consistent and visually appealing designs. This course will teach you everything you need to know about CSS Grid so you can become a more effective UI designer.
Product Designer
Product designers are responsible for the overall design and functionality of a product. This includes everything from the product's features to its user interface. To be successful in this role, you need to have a strong understanding of CSS Grid and its uses. This course will help you build a solid foundation in CSS Grid and give you the skills you need to create products that are both visually appealing and functional.
Interaction Designer
Interaction designers create the interactive elements of a website or app. This includes designing buttons, menus, and other interactive elements. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create interactive elements. This course will help you build a strong foundation in CSS Grid and give you the skills you need to create engaging and user-friendly interactions.
Graphic designer
Graphic designers create visual content such as logos, brochures, and website designs. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create visually appealing designs. This course will help you build a strong foundation in CSS Grid and give you the skills you need to create stunning graphics.
Animator
Animators create animations for websites, apps, and other digital media. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create animations. This course will help you build a strong foundation in CSS Grid and give you the skills you need to create engaging and visually appealing animations.
Motion Graphics Artist
Motion graphics artists create animations that are used in a variety of media, such as TV, film, and video games. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create animations. This course will help you build a strong foundation in CSS Grid and give you the skills you need to create stunning motion graphics.
UX Researcher
UX researchers study how users interact with websites and apps. This information is used to improve the user experience. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create user interfaces. This course will help you build a strong foundation in CSS Grid and give you the skills you need to conduct effective UX research.
Content Strategist
Content strategists work with businesses to ensure that their website and other content is effective in achieving their business goals. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create websites that are both visually appealing and easy to navigate. This course will help you build a strong foundation in CSS Grid and give you the skills you need to be a successful content strategist.
Web Designer
Web designers create the overall look and feel of a website. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create visually appealing and functional websites. This course will help you build a strong foundation in CSS Grid and give you the skills you need to succeed as a web designer.
Visual Designer
Visual designers create the visual elements of a product. This includes everything from the product's logo to its packaging. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create visually appealing products. This course will help you build a strong foundation in CSS Grid and give you the skills you need to succeed as a visual designer.
Project Manager
Project managers are responsible for planning, executing, and closing projects. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create project plans and timelines. This course will help you build a strong foundation in CSS Grid and give you the skills you need to be a successful project manager.
Business Analyst
Business analysts work with businesses to identify and solve problems. To be successful in this role, you need to have a strong understanding of CSS Grid and how it can be used to create solutions to business problems. This course will help you build a strong foundation in CSS Grid and give you the skills you need to be a successful business analyst.

Reading list

We've selected six books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Mastering CSS Grid 2023 - With 3 cool projects.
Comprehensive guide to CSS Grid Layout, covering everything from the basics to advanced techniques. It is written in a clear and concise style, and is packed with examples and exercises.
Practical guide to CSS Grid Layout, written for web developers of all levels. It covers the basics of CSS Grid Layout, as well as more advanced techniques.
Visual guide to CSS Grid Layout. It contains a collection of visual examples of CSS Grid layout, and great resource for those who want to learn how to use CSS Grid to create beautiful and effective layouts.
Provides a comprehensive overview of grid systems, including CSS Grid Layout, and how they can be used to create beautiful and functional layouts.
Provides a comprehensive reference to CSS Grid Layout, covering all the properties and techniques you need to know.
Provides the master's guide to CSS Grid Layout, covering all the properties and techniques you need to know to create complex and responsive layouts.

Share

Help others find this course page by sharing it with your friends and followers:

Similar courses

Here are nine courses similar to Mastering CSS Grid 2023 - With 3 cool projects.
CSS, Website Layout, Website Components
Most relevant
CSS Bootcamp - Master CSS (CSS Grid / CSS Flexbox)
Most relevant
Creating Responsive Pages with CSS FlexBox
Most relevant
Learn HTML and CSS in 7 Days | Web Developer Bootcamp
Most relevant
Advanced CSS and Sass: Flexbox, Grid, Animations and More!
Most relevant
Modern HTML & CSS From The Beginning (Including Sass)
Most relevant
Tailwind CSS From Scratch | Learn By Building Projects
Most relevant
Learn CSS Flexbox
Most relevant
Creating Layouts with CSS Grid
Most relevant
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2024 OpenCourser