Setting minimum font size and using min, max functions

The CSS `min` and `max` functions are very useful when setting a minimum font size or a value that varies within a certain range.

If you are using Sass, to use the `min` and `max` functions, you must treat the value as a string and then use the `unquote` function to remove the quotation marks.

Here is an example


   font-size: unquote('min(value, value)'); 
 

This code uses the `unquote` function to remove the quotes before the `min` function is applied, and enables the `min` function as CSS.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top