Functions for selecting one of the values ​​in CSS

maxmin
Задание 1

Given a block. Make its width either 300px, or 50% percent - whichever is greater.

Задание 2

Given a block. Make its width either 400px, or 30% percent - whichever is smaller.