0

can anyone tell me what is wrong about this code:

<p id="text" style="font-size: max(6vh, 6vw);" />

the html inspections says invalid value. Why doesn't this work?

Ginso
  • 51
  • 10
  • Possible duplicate of [How to implement max-font-size?](https://stackoverflow.com/questions/40528290/how-to-implement-max-font-size) – Lalji Tadhani May 17 '19 at 11:38

1 Answers1

3

max() ist experimental and only works in Safari

See the Documentation on MDN: max() #Browser Compatibility

yunzen
  • 32,854
  • 11
  • 73
  • 106