Welcome to the Treehouse Community
Looking to learn something new?
Relative Length Units vh vmin vw
can any buddy tell me what does vh do and vw do and vmin do what i think is VH will alter and adjust the element on the page if the height of viewport is changed and VW will adjust the element if the width of the viewport is changed and a little bit confused with vmin please clarify
Rui Bi29,853 Points
vmin works as vw if the viewport's height is greater than its width, while vmin works as vh if the viewport's width is greater than its height. It takes the lesser of the height and width values as its point of reference.