ابزار برنامه نویسی

آموزش CSS Grids

CSS Grids for Everyone

The new CSS Grid spec offers unprecedented control when it comes to constructing layouts and components. In fact, this level of power and flexibility has never been available before now. That being said, there's a slight learning curve.

Come along, as I teach you everything you need to know in bite-sized episodes. You'll be constructing your own custom grids in no time.

سطح متوسط 6 جلسه آموزشی 00:37:00 ساعت
01
قسمت 1

Your First Grid

Let's get started at the very beginning. How do we construct our first 2x3 grid? This episode will introduce you to a handful of new CSS properties. View the source code for this first episode on JSBin.

02
قسمت 2

Position it Anywhere

We now have unprecedented control over how we position items within a grid. No longer are we forced to rearrange HTML to a move a region from one position to another. There's literally no limit to how you organize your layouts.

03
قسمت 3

Named Grid Areas

Each grid item can optionally be assigned a grid-area name. The container can then use these referenced names to construct your desired grid using a more readable convention. View the source code for this episode on JSBin.com.

04
قسمت 4

The Fractional Unit

When reviewing CSS grid demos, you'll likely come across the new fr measurement type. This stands for fraction, and allows us to easily specify how much of a grid's remaining available space should be taken up. Let's review a few examples in this epi...

05
قسمت 5

Nested Grids

As it turns out, any item within a grid can also serve as its own grid container. This allows for a near infinite array of layout possibilities. View the source code for this episode on GitHub.

06
قسمت 6

The Tricky Auto-Fill and Auto-Fit

The auto-fill and auto-fit keywords offer a lot of flexibility when it comes to dynamically constructing and distributing grid tracks. But, understanding the difference between the two can be tricky. Let's break it down as succinctly as we can.

دوره در حال اجرا

این دوره هنوز به پایان نرسیده است و در آینده درس های دیگری به آن افزوده خواهد شد.