课程: CSS: Advanced Layouts with Grid
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
What you're creating: A multi-column layout - CSS教程
课程: CSS: Advanced Layouts with Grid
What you're creating: A multi-column layout
- [Narrator] An obvious use case for CSS grid is for creating multi-column layouts. In this chapter, I'll show you how to create a single column, two-column, and three-column layout that responds based on the viewport width. So here's that single column, and if we make this a little wider, there we get our two column, and finally, at full desktop size, we get this third column. We'll also cover centering techniques and even refactor our code at the end of the chapter to use named grid areas, and we'll do all of this using the same HTML document as our foundation. Let's get going.
内容
-
-
-
-
-
(已锁定)
What you're creating: A multi-column layout36 秒
-
(已锁定)
Overview of the starting point3 分钟 13 秒
-
(已锁定)
Create the main grid4 分钟 5 秒
-
(已锁定)
Manual grid item placement4 分钟 21 秒
-
(已锁定)
Add third column for wider viewports4 分钟 26 秒
-
(已锁定)
Justify the grid2 分钟 43 秒
-
(已锁定)
Bonus: Refactor using grid areas4 分钟 44 秒
-
(已锁定)
-
-
-
-
-