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

后端 未结 19 1469
情话喂你
情话喂你 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:46

    margin and padding don't have min or max prefixes. Sometimes you can try to specify margin and padding in terms of percentage to make it variable with respect to screen size.

    Further you can also use min-width, max-width, min-height and max-height for doing the similar things.

    Hope it helps.

提交回复
热议问题