min padding

Solutions on MaxInterview for min padding by the best coders in the world

showing results for - "min padding"
Lisandro
03 Jun 2019
1//In 2020 this is now very straightforward using the CSS math functions: min(), max(), and clamp().
2
3//A min calculation picks the smallest from a comma separated list of values (of any length). This can be used to define a max-padding or max-margin rule:
4padding-right: min(50px, 5%);
5
6//A max calculation similarly picks the largest from a comma separated list of values (of any length). This can be used to define a min-padding or min-margin rule:
7padding-right: max(15px, 5%);
8
9//A clamp takes three values; the minimum, preferred, and maximum values, in that order.
10padding-right: clamp(15px, 5%, 50px);
Michele
26 Feb 2018
1padding-right: min(50px, 5%);
2
Célestine
11 Apr 2020
1padding-right: max(15px, 5%);
2
Irwin
16 Jan 2016
1padding-right: clamp(15px, 5%, 50px);
2
Lucia
05 Sep 2018
1max(MINIMUM, min(PREFERRED, MAXIMUM))
2