CSS Grid Intro and Basic Layout Tutorial for Beginners

Dave Gray β€’ May 10, 2022
Video Thumbnail

About

Web Development tutorials with full courses on HTML, CSS, JavaScript, React, Node.js and more! My goal is to help you learn how to build the web. Teaching helps me learn, too. I work full-time as a Solutions Architect / Developer and part-time as a university web dev instructor. Thank you for subscribing, supporting my channel and sharing the videos you think may help others. Keep striving for progress over perfection. And a little progress every day goes a very long way. Milestones: July 20, 2020 - 1st video Jan 1, 2021 - 1k subs April 2021 - 4k watch hours Nov 2021 - 10k subs Jan 21, 2022 - Video at 100k views Feb 16, 2022 - 100k watch hours Feb 19, 2022 - 1m views Dec 13, 2022 - 100k subs Dec 2022 - Over 1m views in 1 month April 7, 2023 - 10m views May 26, 2023 - 1m watch hours Sept 22, 2023 - Video at 1m views Dec 25, 2023 - 250k subs

Video Description

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap In this CSS Grid intro and basic layout tutorial for beginners, you will learn the CSS grid properties frequently used in constructing grid layouts. You will also create a basic layout with CSS grid. 🚩 Subscribe ➜ https://bit.ly/3nGHmNn πŸš€ This lesson is part of a CSS for Beginners tutorial series playlist: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6Mx9fd9elt80G1bPcySmWit πŸ”— All Resources for this CSS Tutorial Series: https://github.com/gitdagray/css_course πŸ“¬ Course Updates ➜ https://courses.davegray.codes/ CSS Grid Intro and Basic Layout Tutorial for Beginners (00:00) Intro (00:05) Welcome (00:26) Setup & Starter Code Review (01:48) Quickest way to apply a grid (02:32) grid-template-columns (05:28) grid-auto-rows (07:01) grid-template-rows, grid-auto-columns (07:27) row-gap, column-gap, gap (08:36) grid-column-start & end, grid-row-start & end (10:49) Viewing your grid in dev tools (12:19) grid-column, grid-row shorthand (14:14) align-content, justify-content, place-content (16:00) Adding HTML for grid-template-areas (17:49) grid-template-areas, grid-area (22:14) Experimenting with layout properties (24:53) CSS Grid Garden πŸ•ΉοΈ Learning Games: πŸ”— Flexbox Froggy: https://flexboxfroggy.com/ πŸ”— CSS Grid Garden: https://cssgridgarden.com/ βš™ Web Dev Tools: πŸ”— Chrome Browser: https://www.google.com/chrome/ πŸ”— Visual Studio Code (VS Code): https://code.visualstudio.com/ πŸ”— Live Server VS Code Extension: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer πŸ”— vscode-icons VS Code Extension: https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons πŸ”— Github Themes VS Code Extension: https://marketplace.visualstudio.com/items?itemName=GitHub.github-vscode-theme πŸ”— W3C CSS Validator: https://jigsaw.w3.org/css-validator/ πŸ”— Specificity Calculator: https://specificity.keegan.st/ πŸ”— HTML Special Characters and Entities: https://unicode-table.com πŸ“š References: πŸ”— MDN CSS: https://developer.mozilla.org/en-US/docs/Web/CSS πŸ”— MDN CSS Basics: https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/CSS_basics πŸ”— MDN CSS Selectors: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors πŸ”— MDN - How to Apply Colors to HTML Elements with CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/color πŸ”— MDN - CSS Values and Units: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units πŸ”— MDN - The Box Model: https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model πŸ”— MDN - Styling Lists: https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Styling_lists πŸ”— MDN - Display Property: https://developer.mozilla.org/en-US/docs/Web/CSS/display πŸ”— MDN - Floats: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Floats πŸ”— MDN - Columns: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Columns/Basic_Concepts_of_Multicol πŸ”— MDN - Margin Collapsing: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing πŸ”— MDN - White-Space: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space πŸ”— MDN - Positioning: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning πŸ”— MDN - Flexbox: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox πŸ”— MDN - Basic Concepts of Grid Layout: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Basic_Concepts_of_Grid_Layout πŸ”— MDN - Grid Template Areas: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Grid_Template_Areas πŸ“š Typography Resources: πŸ”— MDN: Fundamental Text and Font Styling - https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Fundamentals πŸ”— CSSFontStack.com: Websafe Fonts - https://www.cssfontstack.com/ πŸ”— MDN: Styling Links - https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Fundamentals πŸ“š Color Resources: πŸ”— Coolors Contrast Checker: https://coolors.co/contrast-checker/112a46-acc8e5 πŸ”— WebAIM Contrast Checker: https://webaim.org/resources/contrastchecker/ πŸ”— Coolors Palette Generator: https://coolors.co/ πŸ”— HTML Color Codes: https://htmlcolorcodes.com/ βœ… Follow Me: Github: https://github.com/gitdagray Twitter: https://twitter.com/yesdavidgray LinkedIn: https://www.linkedin.com/in/davidagray/ Blog: https://yesdavidgray.com Reddit: https://www.reddit.com/user/DaveOnEleven Was this tutorial about CSS Grid Layouts for Beginners helpful? If so, please share. Let me know your thoughts in the comments. #css #grid #layout

You May Also Like

Upgrade Your Gear Hauling

AI-recommended products based on this video

Loading...
COTUBLR 31 Inch Computer Desk, Home Office Desk, Simple Modern Small Desk for Bedroom, Writing Desk with Storage Bag, Study Table for Students, Grey Oak

COTUBLR 31 Inch Computer Desk, Home Office Desk, Simple Modern Small Desk for Bedroom, Writing Desk with Storage Bag, Study Table for Students, Grey Oak

(180)
$64.99
FREE delivery Thu, Jun 26
Loading...
SmallRig FX3 / FX30 HawkLock Quick Release Camera Cage Kit for Sony with Cable Clamp, Bulit-in QR Cold Shoe NATO Rail/QR Plate for Arca, Modular Design Compatible with Original XLR Handle - 4770

SmallRig FX3 / FX30 HawkLock Quick Release Camera Cage Kit for Sony with Cable Clamp, Bulit-in QR Cold Shoe NATO Rail/QR Plate for Arca, Modular Design Compatible with Original XLR Handle - 4770

(35)
$124.94
FREE delivery Thu, Jun 19
Loading...
Long Range Super Endurance Foldable Drone with Camera for Beginners–36+ min Flight Time, WiFi FPV Quadcopter with 2K HD Camera, Brushless Motor, Auto Hover, Follow Me (2 Batteries)

Long Range Super Endurance Foldable Drone with Camera for Beginners–36+ min Flight Time, WiFi FPV Quadcopter with 2K HD Camera, Brushless Motor, Auto Hover, Follow Me (2 Batteries)

(206)
$88.98
FREE delivery Sun, Nov 30
1K+ bought in past month
Loading...
3 Channel Dash Cam,4K+1080P Dash Cam Front and Rear Inside,Triple Car Camera, Dash Camera for Cars with 32GB Card,Built-in G-Sensor,170Β°Wide Angle,2’’ IPS Display,24Hr Parking,Night Vision

3 Channel Dash Cam,4K+1080P Dash Cam Front and Rear Inside,Triple Car Camera, Dash Camera for Cars with 32GB Card,Built-in G-Sensor,170Β°Wide Angle,2’’ IPS Display,24Hr Parking,Night Vision

(23)
$69.99
FREE delivery Fri, Dec 5
2K+ bought in past month
Loading...
Dash Camera for Cars, 4K+1080P Dash Cam Front and Rear with 5G WiFi, Built-in 32GB Card, Night Vision, G-Sensor, Loop Recording, 24H Parking Mode

Dash Camera for Cars, 4K+1080P Dash Cam Front and Rear with 5G WiFi, Built-in 32GB Card, Night Vision, G-Sensor, Loop Recording, 24H Parking Mode

(759)
$75.99
FREE delivery Sun, Oct 19
2K+ bought in past month
Loading...
DJI Osmo Action 4 Standard Combo, 4K/120fps Waterproof Action Camera with a 1/1.3-Inch Sensor, Stunning Low-Light Imaging,10-bit & D-Log M Color Performance, Long-Lasting 160 Mins, Outdoor Camera

DJI Osmo Action 4 Standard Combo, 4K/120fps Waterproof Action Camera with a 1/1.3-Inch Sensor, Stunning Low-Light Imaging,10-bit & D-Log M Color Performance, Long-Lasting 160 Mins, Outdoor Camera

(3,962)
299.00
PrimeFREE delivery Saturday, June 14
500+ bought in past month
Loading...
SmallRig ZV-E1 Camera Baseplate for Sony ZV-E1, Built-in Cold Shoe Mount and QR Plate (for Arca) Quick Switch Between Tripod and Stabilizer for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro - 4314

SmallRig ZV-E1 Camera Baseplate for Sony ZV-E1, Built-in Cold Shoe Mount and QR Plate (for Arca) Quick Switch Between Tripod and Stabilizer for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro - 4314

(3)
$44.99
FREE delivery Thu, Jun 19
Loading...
NEEWER a6700 L Plate Compatible with Sony Alpha 6700, Quick Switch Aluminum Extendable Side Plate & Anti Twist Baseplate Compatible with Arca Swiss QR System DJI RS 2 RSC 2 RS 3 Pro Gimbals, CA048

NEEWER a6700 L Plate Compatible with Sony Alpha 6700, Quick Switch Aluminum Extendable Side Plate & Anti Twist Baseplate Compatible with Arca Swiss QR System DJI RS 2 RSC 2 RS 3 Pro Gimbals, CA048

(24)
$25.99
FREE delivery Thu, Jun 19 on your first order
Loading...
SmallRig ZV-E1 Camera Baseplate for Sony ZV-E1, Built-in Cold Shoe Mount and QR Plate (for Arca) Quick Switch Between Tripod and Stabilizer for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro - 4314

SmallRig ZV-E1 Camera Baseplate for Sony ZV-E1, Built-in Cold Shoe Mount and QR Plate (for Arca) Quick Switch Between Tripod and Stabilizer for DJI RS 2 / RSC 2 / RS 3 / RS 3 Pro - 4314

(3)
$44.99
FREE delivery Thu, Jun 19
Loading...
SmallRig FX3 / FX30 HawkLock Quick Release Camera Cage Kit for Sony with Cable Clamp, Bulit-in QR Cold Shoe NATO Rail/QR Plate for Arca, Modular Design Compatible with Original XLR Handle - 4770

SmallRig FX3 / FX30 HawkLock Quick Release Camera Cage Kit for Sony with Cable Clamp, Bulit-in QR Cold Shoe NATO Rail/QR Plate for Arca, Modular Design Compatible with Original XLR Handle - 4770

(35)
$124.94
FREE delivery Thu, Jun 19
Loading...
SmallRig FX3 / FX30 HawkLock Quick Release Camera Cage Kit for Sony with XLR Handle Extension, Wrist Strap and Cable Clamp for HDMI, QR Cold Shoe, NATO Rail/QR Plate for Arca,Titanium Gray - 4771

SmallRig FX3 / FX30 HawkLock Quick Release Camera Cage Kit for Sony with XLR Handle Extension, Wrist Strap and Cable Clamp for HDMI, QR Cold Shoe, NATO Rail/QR Plate for Arca,Titanium Gray - 4771

(72)
$174.24$162.04
FREE delivery Thu, Jun 19
Loading...
AC Power Cord Cable Fit for Sony PS5 PS4 PS3 Slim PlayStation 5 4 3, Xbox Series X/S, Xbox One X/S, TV, Printer Universal 2 Prong Supply Replacement - (ETL Listed Cable)

AC Power Cord Cable Fit for Sony PS5 PS4 PS3 Slim PlayStation 5 4 3, Xbox Series X/S, Xbox One X/S, TV, Printer Universal 2 Prong Supply Replacement - (ETL Listed Cable)

(5,351)
$8.49
Prime
500+ bought in past month