Can we define min-margin and max-margin, max-padding and min-padding in css?

后端 未结 19 1470
情话喂你
情话喂你 2021-01-31 01:01

Can we define min-margin and max-margin, max-padding and min-padding in CSS ?

19条回答
  •  时光说笑
    2021-01-31 01:33

    I use this hack of defining the minimum margin required then the auto example:

    margin-left: 20px+auto;

    margin-right: 20px+auto;

    this makes a minimum cushion area and automatically align the view

提交回复
热议问题