There are the following ways by which you can achieve this:
- Use rem for e.g. 2.3 rem
- Use em for e.g. 2.3em
- Use % for e.g. 2.3%
Moreover, you can use :
vh, vw, vmax and vmin.
These units will autoresize depending upon the width and height of the screen.