CSS Units of Measurement [rem, em, vw, vh, px, %]
Vložit
- čas přidán 11. 07. 2024
- There are about 15 CSS units of measurement compatible with most browsers. We are going to cover all of the ones that you will use in real life. We'll cover absolute units like pixels (px) and relative units like percent (%), viewport width (vw), viewport height (vh), and the ones that I get the most questions about, rem and em. I'll clearly explain how they work and when you should and should not use them.
There is a CSS unit that I left out of the video, and that is fractional units (fr). These are specific to CSS Grid. I have a video on that subject that goes into detail on fr units.
Learn CSS Grid in 20 Minutes (2019)
• Learn CSS Grid in 20 M...
_____________________________________
📚 Learn to CODE in just a FEW months here:
Treehouse Discount Code: treehouse.7eer.net/codeSTACKr
_____________________________________
🛠️ Tools I use:
🟠 Theme: marketplace.visualstudio.com/...
🟠 Font: STACKr Code (Exclusive to my VS Code Course - vsCodeHero.com)
🟠 SuperHero Extension Pack: marketplace.visualstudio.com/...
🚢 Deploy for FREE on Vercel: vercel.com/ambassadors/codest...
_____________________________________
💖 Show support!
PayPal: paypal.me/codeSTACKr
_____________________________________
Watch Next:
Web Development - Beginners Roadmap (2020) - • Web Developer Roadmap ...
Playlist: Web Development For Beginners - • Web Development - Begi...
_____________________________________
Connect With Me:
Website: www.codestackr.com
Twitter: / codestackr
Instagram: / codestackr
Facebook: / codestackr
_____________________________________
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
#codeSTACKr #CSS #learntocode
Thanks for all of the support!!
Next up Learn Sass in 30 Minutes:
czcams.com/video/BDOzg4lXcSg/video.html
📚 My Favorite Web Design Books 📚
Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link)
amzn.to/2JaiCL8
# rem
5:49 => 1 rem (default font size of most browsers is 16px);
6:31, 6:41 => change the default html font size to 10px (better to set it in rem);
8:37 => rem is accessibility friendly;
9:00 => the reason why it is accessibility friendly;
# em
8:06 => relative to the font size of the element (the more nested, the crazier it would be);
this tutorial is informative to me now that I understand the importance of rem than using em or px thank you :)
Your tutorials are very informative and helpful. Keep up great work!
This video deserves more viewers! Thanks a lot!
Thank you!
thank you very much, I've been a full stack dev since long time ago, but I used to get confused with rem, em, vw, vh, thanks for this video.
what should i say to this man? you made my learning so much simpler i have a lot of prayers for you, may god help you in your difficulties, as you are doing in us,
Thank you!
Thank you so much, very easy to understand. If I watched this before, I wouldn't confuse about difference between percentage and vh vw on the test in class.
i think this is the most video which deserve a big big big like, thank u so much
Thank you ! I Whenever I get stuck in something, I know it's always the basics!
I just get to know about your channel and I found it interesting and amazing....thanks for all the good works. Am going to watch most of your videos and equally like them. I wish I can get in touch with you.
Thank you! Hit me up on Instagram.
Excellent explanation and demonstration!
Very helpful for people who want a clear and concise explanation about the Units of Measurement. Thank you!
Glad it was helpful!
You are a great teacher. Thank you a lot! You should know that you may actually change others life with these videos!
Wow, thank you!
Great tutorial! Thank you!
I just discover you channel and you are great, keep it up, you rock ! and of course thank you !
Thank you!
I find helpful concise and easy to understand. Thank you
best explanation of units in youtube,thanks
Wow, thanks!
Thank you so much, clean stuff
This was the greatest explanation of units i've ever watched lol.
Your explanations are so good ! Good job!
I agree, very well done, thank you!
Thank you!
Adore your videos. Thanks so much!
dude literally perfect
subbing
best tutorial ever. thank you very much
thanks bro ,now i understand the use of rem well.
Excellent tutorial. Thanks a lot.
Glad it was helpful!
Thanks so much - I finally understood the difference now!
Glad it helped!
Units of measurement made easy to understand. Great work 👍
Thanks 👍
Thank you! You're awesome!
Well done! Thnx
Informative and Concise. thanks
Glad it was helpful!
Kandungan video sangat baik, tahniah
That's beautifully explains.
Glad it was helpful!
great explanation, thanks so much..
Glad it was helpful!
great explanation
Thank u so much!
You are the best, thank you
a lot of thanks for the helpful video
Glad it was helpful!
Tks a lot!
Thanks!
Thank you very much.
I would like this video twice or more if CZcams has the option for it!
That’s just great. Is that really your intro-music? I’m going to have nightmares now, you know. 🤣
Thank you!!
You're welcome!
Thanks bro
Thank you!
You're welcome!
I don't know what I have understood or not but I learned ... I have to use - REM! :)
Thank You
You're welcome
Thank you
You're welcome
thank you
You're welcome
I'm backend dev, and your videos helping a lot to learn this new world front-end, thx a lot man, any chances to make a video with Vue.js?
I'm currently working on React videos. After that will be Vue 😁
Hey, awesome explanation bro! What do you think about using html font size = 62,5% and then use rem?)
Thank you so much for the video! This was really helpful! One question- at 3:43 in the video you mention that the Div with a width of 50% looks smaller due to padding and margin. I tried looking it up on developer tools and couldn’t find the padding or margin listed. Did you mean the padding/margin from the body? Was the margin from the body affecting the size of the Div since it was the parent element?
「もっと多くの人が必要なので、このビデオをもっと
Very helpful. One question I did have though is that HTML is default 16px font size yet when you redefine the html font size in pixels you cannot further alter it in the browser. I'm a bit confused at that.
Till now I was blindly using em and rem😬
Hey! I pretty much understood everything, but I was wondering... if rem is better for accessibility in general, why do professional pages still use px in most cases? I just checked the inspector on several pages and found that they use a lot of em and px
Is a 600 dpi image 600pt/72 of 1in or 600px/96th of 1in ?
Sanks
Anda boleh memilih untuk salah satu daripada hadiah di atas
くさんありますありがとうございます」、
the video image is too poor, you need to fix it more
you need to clarify the content
Could you please remove the beginning music ? Great content but the music is really really really really really not necessary.
That is his signature opening for his tutorials just like Brad Traversy and other youtubers. Don't just tell him what to do because its his own youtube videos :)
get more knowledge in less time.