How to simplify the format of writing margin attribute settings?

Internet 2021-08-28 15:30:49 0 4,578

When setting a value for the margin attribute, if 4 parameter values are provided, it will act on the top, right, bottom, and left sides in a clockwise order; if only one parameter value is provided, it will act on the four sides ; If two parameter values are provided, the first parameter value is applied to the upper and lower sides, and the second parameter value is applied to the left and right sides; if three parameter values are provided, the first parameter value is applied to the upper and lower sides. The two parameter values act on the left and right sides, and the third parameter value acts on the bottom.


Your opinion

Already have 0 Article answer