Learn Accessibility by building a Quiz Step 8

In this step i learned about the max function well i have a question about it why would i use a max function to choose the largest between them i should just write

width: 18vw ;

instead of this

width: max( 100px , 18vw ) ;

what’s the point of doing that would it not be better just to type the largest from the beginning??!!

My thoughts on this is the starting point for vw is the reason for the width. Then, if any additional restrictions are placed on it that would be added such as max or min.
But, I am just stating my thoughts on how I perceive it. I could be wrong. :slight_smile:

Good question!

Happy coding! :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.