Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
In this CSS units and sizes tutorial for beginners, you will learn about the common units of measurement used in CSS including px, rem, em, ch, vw, vh and % for setting sizes in your web pages.
Subscribe ➜ https://bit.ly/3nGHmNn
This lesson is part of a CSS for Beginners tutorial series playlist:
• CSS Tutorials for Beginners
All Resources for this CSS Tutorial Series: https://github.com/gitdagray/css_course'>https://github.com/gitdagray/css_course
Course Updates ➜ https://courses.davegray.codes/
CSS Units & Sizes Tutorial for Beginners
(00:00) Intro
(00:05) Welcome
(00:25) Setup
(00:51) Many CSS units to choose from
(01:27) Absolute units pixels
(02:26) Where NOT to use an absolute value
(03:49) Where you can use an absolute value
(04:28) Relative units percent
(07:16) rem units
(09:34) rem vs em units
(10:50) When to use em units
(12:43) ch units
(13:44) Default browser styles
(15:37) CSS Reset
(16:21) Viewport units vw and vh
(17:35) When vw units can cause a problem
(19:52) A good use case for vh units
⚙ 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/...
vscodeicons VS Code Extension: https://marketplace.visualstudio.com/...
Github Themes VS Code Extension: https://marketplace.visualstudio.com/...
W3C CSS Validator: https://jigsaw.w3.org/cssvalidator/
Specificity Calculator: https://specificity.keegan.st/
References:
MDN CSS: https://developer.mozilla.org/enUS/d...
MDN CSS Basics: https://developer.mozilla.org/enUS/d...
MDN CSS Selectors: https://developer.mozilla.org/enUS/d...
MDN How to Apply Colors to HTML Elements with CSS: https://developer.mozilla.org/enUS/d...
MDN CSS Values and Units: https://developer.mozilla.org/enUS/d...
Color Resources:
Coolors Contrast Checker: https://coolors.co/contrastchecker/1...
WebAIM Contrast Checker: https://webaim.org/resources/contrast...
Coolors Palette Generator: https://coolors.co/
HTML Color Codes: https://htmlcolorcodes.com/
✅ Follow Me:
Github: https://github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
Blog: https://yesdavidgray.com
Reddit: / daveoneleven
Was this tutorial about CSS Units and Sizes for beginners helpful? If so, please share. Let me know your thoughts in the comments.
#css #units #tutorial