half the width of the viewport code example Example: what are the viewport based units in html The viewport based units are: vh , vw , vmin, vmax .