You can use padding-top, padding-right, padding-bottom, and/or padding-left to define specific values for each side.
You can use padding shortcut if you want to define values for all sides; its effect is determined by the number of values provided.
The padding shortcut define the padding values for all sides in the following order: top, right, bottom, left.
-
One value:
The padding-top, padding-right, padding-bottom, and padding-left are set to this value.
-
Two values:
The padding-top and padding-bottom are set to the 1st value.
The padding-right and padding-left are set to the 2nd value.
-
Three values:
The padding-top is set to the 1st value.
The padding-right and padding-left are set to the 2nd value.
The padding-bottom is set to the 3rd value.
-
Four values:
The padding-top is set to the 1st value.
The padding-right is set to the 2nd value.
The padding-bottom is set to the 3rd value.
The padding-left is set to the 4th value.