Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is clamp property in CSS?
Home
CSS
What is clamp property in CSS?
asked
Aug 17, 2023
in
CSS
by
GeorgeBell
What is clamp property in CSS?
css-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 17, 2023
by
GeorgeBell
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);
}
...