DEV Community

Discussion on: Completely responsive CSS values, more than just media queries

Collapse
 
chiangs profile image
Stephen Chiang • Edited

Awesome article!

Doesn't your final example require calc() to be included or am I missing something?

example:

/* Laptop and Desktops screens */
@media (min-width: 769px) {
  html {
    font-size: calc(14px + 10 * ((100vw - 769px) / 2048px));
  }
}
Collapse
 
promisetochi profile image
Promise Tochi

Wow, thanks for pointing that out, Stephen 😅