Can we define min-margin and max-margin, max-padding and min-padding in CSS ?
Try using the css properties min and max as a workaround
For example:
width: min(50vw, 200px);
means the width will be the smallest of the two values.
width: max(50vw, 200px);
means the width will be the larger of the two values.
More details here:
https://developer.mozilla.org/en-US/docs/Web/CSS/min