CSS Media Queries & Responsive Web Design tutorial for Beginners

Dave Gray β€’ May 24, 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 Learn CSS media queries and responsive web design for beginners in this tutorial. A CSS media query is capable of changing your page design and presentation based on different screen and browsers sizes. 🚩 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 Media Queries & Responsive Web Design tutorial for Beginners (00:00) Intro (00:05) Welcome (00:26) Starter Code (01:26) Viewport meta tag (02:48) Syntax of a media query (03:28) Think mobile first (05:53) Other query types and breakpoints (07:11) How to choose breakpoints (10:25) Build a basic page layout (16:11) Add a media query (17:49) Use dev tools to view different screen sizes (20:41) Add all media queries (24:14) View each breakpoint change βš™ 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 πŸ”— CanIUse.com: https://caniuse.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 πŸ”— MDN - CSS Images: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Images πŸ”— MDN - CSS Background Images: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Backgrounds_and_Borders/Resizing_background_images πŸ”— Chip Cullen - Article on Content Layout Shift: https://chipcullen.com/what-width-and-height-attributes-to-use-with-responsive-images/ πŸ”— MDN - CSS Media Queries: https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Media_queries βœ… 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 Media Queries and Responsive Web Design helpful? If so, please share. Let me know your thoughts in the comments. #css #media #queries

You May Also Like

Revamp Your Dev Setup Now

AI-recommended products based on this video

Loading...
Spy Camera, Hidden Camera 4K Ultra HD with 4H Battery Life, SD Card & Cloud Storage, Motion Detection Alarm, Real-Time App Alerts, 2.4G WiFi & Night Vision for Home/Office Security

Spy Camera, Hidden Camera 4K Ultra HD with 4H Battery Life, SD Card & Cloud Storage, Motion Detection Alarm, Real-Time App Alerts, 2.4G WiFi & Night Vision for Home/Office Security

(82)
$39.99
FREE delivery Tue, Mar 31
Loading...
Apollo 13 - 4K Ultra HD + Blu-ray (Bilingual)

Apollo 13 - 4K Ultra HD + Blu-ray (Bilingual)

(8,601)
$13.19
FREE delivery Mon, Jan 26 on your first order
100+ bought in past month
Loading...
Spy Camera, Hidden Camera 4K Ultra HD with 4H Battery Life, SD Card & Cloud Storage, Motion Detection Alarm, Real-Time App Alerts, 2.4G WiFi & Night Vision for Home/Office Security

Spy Camera, Hidden Camera 4K Ultra HD with 4H Battery Life, SD Card & Cloud Storage, Motion Detection Alarm, Real-Time App Alerts, 2.4G WiFi & Night Vision for Home/Office Security

(127)
$33.99
Prime
1K+ bought in past month
Loading...
Fallout: Season One (4K Ultra HD) [Blu-ray]
Best Seller

Fallout: Season One (4K Ultra HD) [Blu-ray]

(136)
$26.99
FREE delivery Wed, Aug 13 on your first order
400+ bought in past month
Loading...
Laptop Stand, OMOTON Laptop Mount, Aluminum Laptop Holder Riser Stand for Desk, Compatible with MacBook Air/Pro, Dell, HP, Lenovo and All Laptops (10-15.6 inch),Silver

Laptop Stand, OMOTON Laptop Mount, Aluminum Laptop Holder Riser Stand for Desk, Compatible with MacBook Air/Pro, Dell, HP, Lenovo and All Laptops (10-15.6 inch),Silver

(9,083)
$22.99
200+ bought in past month
Loading...
PC Gaming Headset Headphone Hook Holder Hanger Mount, Headphones Stand with Adjustable & Rotating Arm Clamp, Under Desk Design, Universal Fit, Built in Cable Clip Organizer EURPMASK
Best Seller

PC Gaming Headset Headphone Hook Holder Hanger Mount, Headphones Stand with Adjustable & Rotating Arm Clamp, Under Desk Design, Universal Fit, Built in Cable Clip Organizer EURPMASK

(26,414)
$9.57
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
Wall Mounted Fold Down Table, Space-Saving Folding Desk for Small Spaces, Portable Computer Desk for Kitchen, Laundry, and Garage(LxW - 60x40cm/23.5x15.5in)

Wall Mounted Fold Down Table, Space-Saving Folding Desk for Small Spaces, Portable Computer Desk for Kitchen, Laundry, and Garage(LxW - 60x40cm/23.5x15.5in)

(0)
$381.15
FREE delivery Aug 27 - Sep 18
Loading...
LISEN for iPad Stand Holder 360Β° Adjustable Tablet Stand for Desk,Must Have Office Desk Accessories Women Desktop Stand Holder Switch Mounts Compatible with iPad/Tablets/Switch 12.9"-4.7"

LISEN for iPad Stand Holder 360Β° Adjustable Tablet Stand for Desk,Must Have Office Desk Accessories Women Desktop Stand Holder Switch Mounts Compatible with iPad/Tablets/Switch 12.9"-4.7"

(5,746)
$22.49
FREE delivery Mon, Mar 23 on your first order
500+ bought in past month
Loading...
Apple 2025 MacBook Air 13-inch Laptop with M4 chip: Built for Apple Intelligence, 16GB Unified Memory, 256GB SSD Storage, Touch ID; Sky Blue - English Keyboard

Apple 2025 MacBook Air 13-inch Laptop with M4 chip: Built for Apple Intelligence, 16GB Unified Memory, 256GB SSD Storage, Touch ID; Sky Blue - English Keyboard

(687)
$1,249.99
PrimeFREE delivery Sat, Jun 14
100+ bought in past month
Loading...
TP-Link USB C To Ethernet Adapter (UE300C) - J45 To USB C [Thunderbolt 3/4 Compatible] Type-C Gigabit Ethernet LAN Network Adapter, Compatible With Apple MacBook Pro 2017-2023, MacBook Air, And More

TP-Link USB C To Ethernet Adapter (UE300C) - J45 To USB C [Thunderbolt 3/4 Compatible] Type-C Gigabit Ethernet LAN Network Adapter, Compatible With Apple MacBook Pro 2017-2023, MacBook Air, And More

(11,192)
$12.99$10.39
FREE delivery Sat, Jun 14 on your first order
500+ bought in past month
Loading...
Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

(11,639)
$23.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black
Best Seller

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

(17,871)
$27.98$22.38
FREE delivery Tue, Oct 14 on your first order
500+ bought in past month
Loading...
Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

(35,879)
$49.99$44.99
FREE delivery Mon, Jan 26
1K+ bought in past month
Loading...
Razer DeathAdder Essential Gaming Mouse: 6400 DPI Optical Sensor - 5 Programmable Buttons - Mechanical Switches - Rubber Side Grips - Classic Black

Razer DeathAdder Essential Gaming Mouse: 6400 DPI Optical Sensor - 5 Programmable Buttons - Mechanical Switches - Rubber Side Grips - Classic Black

(15,297)
$24.99$23.24
FREE delivery Sat, Apr 11 on your first order
400+ bought in past month
Loading...
NEEWER Advanced 18 inch LED Ring Light for Phone, LCD Touch Screen, 2.4G Remote Lights Control, 3200-5600K, Tripod Light for iPhone Action Camera, for Studio Makeup TikTok YouTube Video Salon (Black)

NEEWER Advanced 18 inch LED Ring Light for Phone, LCD Touch Screen, 2.4G Remote Lights Control, 3200-5600K, Tripod Light for iPhone Action Camera, for Studio Makeup TikTok YouTube Video Salon (Black)

(2,807)
$181.49
FREE delivery Sun, Aug 10
Loading...
Bose QuietComfort Wireless Noise Cancelling Headphones, Bluetooth Over Ear Headphones with Up to 24 Hours of Battery Life, Moonlight Grey - Limited Edition

Bose QuietComfort Wireless Noise Cancelling Headphones, Bluetooth Over Ear Headphones with Up to 24 Hours of Battery Life, Moonlight Grey - Limited Edition

(12,251)
$269.00
FREE delivery Tue, Oct 14