A Full Guide to CSS UNITS!
HTML-код
- Опубликовано: 10 июн 2024
- 💖 Show your support by checking out my courses!
developedbyed.com
-------------------------------------------------------------------------------------------------
CSS Units are quite hard to wrap your head around. In this episode we will look at the most popular CSS Units out there from px, rem, em, vh, vw and how they help in a responsive design in CSS. I am really happy to say that new changes are coming to this channel, focusing more on the fundementals of software and hardware engineering.
-------------------------------------------------------------------------------------------------
👨💻Connect with me
Twitter: / developedbyed
Instagram: / developedbyed
Github: github.com/developedbyed/
-------------------------------------------------------------------------------------------------
📖Chapters
00:00 Channel Changes
01:30 Pixels
02:20 REM
03:20 62.5% Hack
04:25 Margin and Padding Gotchas
06:52 Ems
08:08 CH and paragraphs
09:00 Percentages
09:35 Images and sizing
10:58 VH and min height
11:32 VW and viewports
-------------------------------------------------------------------------------------------------
🎶 Dope music
C Y G N - Emotions chll.to/bfeb2b66
C Y G N - You chll.to/c89d5030
C Y G N - Beautiful chll.to/a9246a7a
#programming #css #webdevelopment - Наука
Hey brother , thanks a lot you are the best frontend teacher i have ever seen , i just wanna thank you because only because of you i learned css and mastered tailwindcss and thanks for this video too , i hope one day i will meet you and thank you face to face 😊
Love this video, more classic ed content. Im glad you are going back to foundations.
Your videos are the reason I got a career in web development. The projects in my portfolio were based on your videos. Thanks for all the hard work and great content. 5 years ago you helped me out in a large way but just doing what you love
That’s amazing to hear! I’d love to see your work!
@@developedbyed if I still had my portfolio from then I would show you. I remember the ball one being a big hit during my interviews
I like the direction. It seems to many channels focus or react. I plan to use the JAM stack with astro and three JS.
I love to chill out in the back end and do funny stuff with databases and terminal and stuff. But to build something for others the frontend is just absolutely necessary. I'm not a fan of fronend development, but your channel makes it fun and chilled out for me. Thank You!
I am looking forward to other contents! Arduino and Unity are really cool topics :D
Thanks Ed, always appreciate your content. Gems for this one is the :root hack and the ch units.
Ohh now I understand why different units are used 😭
Thank you so much!!
hi can you do a tutorial about image how they work inside the browser and how to control them with the css (sorry for my anglish) and thnks fot this tutorial
hey ed can u make role based access and permission tutorial for react?
nice video ed thank you,
whats the wallpaper used , i figured about love money rock n roll but it's not animated like yours
He always looks so happy and cheerful. Make a tutorial on that I would say😂
Great video Ed. Do you have a plan to record updated videos for your Next.js course?
Yes, every course will be updated regularly 👍
Can’t wait for the new content!
Cheers Taylor! You are the ultimate hype man hahaha
Thanks Ed
Rick must be hell of a good dev
Hi can you tell me how can create animation like " paramount pictures Website loading stars " when it's load
the em unit is very mobile, dynamic. don't be afraid to use it. a good example of when em is perfect: you need to coding a button. the button has states - different colors and sizes. for the "big button" state, we just need to specify a larger font size, and everything else will increase automatically.:
.botton {
padding: .5em 1em;
margin-inline: .5em;
font-size: var(--botton-size, 1rem); /* REM only here */
border: .0625em solid black;
border-radius: .375em;
&.botton--small {
--botton-size: .75rem;
}
&.botton--large {
--botton-size: 1.25rem;
}
}
we just change css variable using hard rem, and all soft em change automatically. it was a simple example from real life, but if the button does not need to change the font size, but you need to change the other sizes - em will not help here =)) em gives us an additional opportunity to write less code where possible
Nasa tshirt is first that cought my eye😂 Cool
hey bro, whats the font style you are using in VScode?
Hahahaha 💯 "Cmon man. Get a calculator" my thoughts exactly whenever I see this hack lmao
Yeh, it's awesome if you are starting microcontroller programming tutorials 👍👌
Good video😉
Hii, this is your Gorgeous friend from India❤
Rick lol😅
Avoid using 100vw. At least know that it doesn't take into account the scrollbar that is visible on Windows. If not used with caution, every Windows visitor could be able to horizontally scroll your website about 17px.
I think vw should almost always be overridden with dvw. Dvw accounts for scrollbars and shite
Can I edit your RUclips videos?
Browser zoom is scaling all pixel values together, so no need to fight rem complexity.
thanks i hate it