code the font-size accoding to the screen width code example Example: how to make font responsive html { font-size: calc(1em + 1vw); }