Quick Tip: Let Elements Cover Percentage of the Screen

The measures are explained within the blink of an eye (browser support):

vw – relative to the viewport’s width

vh -relative to the viewport’s height

vmin – the minimum of height and width

vmax – the maximum of height and width

Example:
#id{height:75vh} – lets #id assume 75% of the viewport’s height.

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove, that you are human! *