Answers for "make font responsive"

CSS
1

responsive font size

div {
  font-size: clamp(16px, 3vw, 32px);
}
Posted by: Guest on May-09-2021
6

responsive font-size

/* please refer to https://developer.mozilla.org/fr/docs/Web/CSS/clamp() */
font-size: clamp(40px, 10vw, 70px); /* clamp(MIN, VAL, MAX) */
Posted by: Guest on December-09-2020
1

how to make fonts respnsive

h1 {
  font-size: clamp(16px, 5vw, 34px);
}
Posted by: Guest on October-05-2020
3

responsive text css

/* Uses vh and vm with calc */
@media screen and (min-width: 25em){
  html { font-size: calc( 16px + (24 - 16) * (100vw - 400px) / (800 - 400) ); }
}

/* Safari <8 and IE <11 */
@media screen and (min-width: 25em){
  html { font-size: calc( 16px + (24 - 16) * (100vw - 400px) / (800 - 400) ); }
}

@media screen and (min-width: 50em){
html { font-size: calc( 16px + (24 - 16) * (100vw - 400px) / (800 - 400) ); }
}
Posted by: Guest on March-18-2020

Code answers related to "make font responsive"

Browse Popular Code Answers by Language