Let's reduce the combination of the width and max-width properties to one
cssisntmagic.substack.com
There is an old and sure way to define current and maximum width using the width and max-width properties. .container { width: 100%; max-width: 70rem; } Did you know that can be reduced?π€ There is the min () function that allows us to define values, and browsers will choose the smallest value from them βοΈ
Let's reduce the combination of the width and max-width properties to one
Let's reduce the combination of the width andβ¦
Let's reduce the combination of the width and max-width properties to one
There is an old and sure way to define current and maximum width using the width and max-width properties. .container { width: 100%; max-width: 70rem; } Did you know that can be reduced?π€ There is the min () function that allows us to define values, and browsers will choose the smallest value from them βοΈ