Skip to content

Instantly share code, notes, and snippets.

@McKabue
Last active May 19, 2018 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McKabue/0e5343492de00f133435c4382e19ae7a to your computer and use it in GitHub Desktop.
Save McKabue/0e5343492de00f133435c4382e19ae7a to your computer and use it in GitHub Desktop.
How to set min-font-size in CSS :: https://stackoverflow.com/a/37836926 . This is because the static part of calc() defines the minimum. Even though the dynamic part might shrink to something near 0.
font-size:calc(12px + 1.5vw);
/*
* How to set min-font-size in CSS
* https://stackoverflow.com/a/37836926
* This is because the static part of calc() defines the minimum.
* Even though the dynamic part might shrink to something near 0.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment