Answers for "css font size 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
3

css size

#myID {
  height: 100px; /* Sets the height */
  width: 200px; /* Sets the width */
}
/* or... */
.myClass {
  height: 220px; /* Sets the height */
  width: 40px; /* Sets the width */
}
/* They both work! */
Posted by: Guest on June-25-2020
0

respnsive font size css

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

Browse Popular Code Answers by Language