Answers for "clamp() css tricks"

CSS
7

clamp css

font-size: clamp(1rem, 2.5vw, 2rem);
font-size: clamp(1.5rem, 2.5vw, 4rem);
font-size: clamp(1rem, 10vw, 2rem);
Posted by: Guest on October-31-2020
1

CLAMP CSS

/*clamp(min value,idle value , max value);*/
.title{
  /*this create minimum font size ,maximum font size */ 
  font-size:clamp(2rem,5vw,5rem);
}
Posted by: Guest on August-14-2021

Browse Popular Code Answers by Language