tum_
2
Q:

css calc font size

html { font-size: calc(1em + 1vw); }
1
/*Here a possible solution:*/

http://codepen.io/CrocoDillon/pen/fBJxu

p {
  margin: 0;
  font-size: calc(4vw + 4vh + 2vmin);
  /* See:
   * http://codepen.io/CrocoDillon/pen/jgmwt
   * For some math behind this
   */
}
/*Font-size is calculated with available size using a function that is not 
perfect, but may be adjusted to work well in some cases.*/
0

New to Communities?

Join the community