Answers for "how to make text 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
0

responsive text

body {
  font-size: calc([minimum size] + ([maximum size] - [minimum size]) * ((100vw - [minimum viewport width]) / ([maximum viewport width] - [minimum viewport width])));
}
Posted by: Guest on March-14-2021
0

responsive text css

<h1 style="font-size:10vw;">Responsive Text</h1>

<p style="font-size:5vw;">Resize the browser window to see how the text size scales.</p>
Posted by: Guest on December-06-2020

Code answers related to "how to make text responsive"

Browse Popular Code Answers by Language