What's the difference between VW and VH units in CSS?
VW and VH Explained in detail for beginners.
Thread 🧵
#CSS #100DaysOfCode
VW and VH Explained in detail for beginners.
Thread 🧵
#CSS #100DaysOfCode
2- Now let's do the real business. When we say for example 50 VH, then it's going to take Up 50 of 100 viewport height. what does that even mean?
⬇️
⬇️
The way I want you to think of this viewport is SLICES. So each Viewport height(VH) is a slice across, it goes up and Down.
it is always going to be 100 of them no matter How big or small the browser is.
⬇️
it is always going to be 100 of them no matter How big or small the browser is.
⬇️
3- For viewport widths, it's the same thing only it goes across And the slices go down.
Viewport heights are used much more than VW Because, for The most part, things go all the way across anyway for both units.
Viewport heights are used much more than VW Because, for The most part, things go all the way across anyway for both units.
12- We don't use VW that much because VH goes all the way across Anyway so you're not gonna use it often unless you want to shrink something's width like we just saw in the previous example.
13- VH makes Creating landing pages very easy, it's popular now to have a whole Big image with some text and VH allows us to do this very easily.
What do you think?
If you have any additional information please make sure to share it with us so everyone can learn.
Make sure to follow me for more content like this.
@devatTheCave
Thank you for reading.
If you have any additional information please make sure to share it with us so everyone can learn.
Make sure to follow me for more content like this.
@devatTheCave
Thank you for reading.
جاري تحميل الاقتراحات...