Answers for "clamp css for width"

CSS
0

width clamp css

/* The element will try to be 5% of the view width with min=15px and max=60px */
width:clamp(15px,5vw,60px)
Posted by: Guest on October-12-2021
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