0 votes
in CSS by
What is clamp property in CSS?

1 Answer

0 votes
by
If you want to font-size changes depending on the screen size then use 'clamp(min, val, max)' CSS property

h1{

font-size:clamp(1rem, 2.5vm, 2rem);

}
...