Single declaration



When should we use single declaration properties like padding and margin with values for every side?


The decision of how to structure the padding or margin of an element will always be based on the needed result of a page, if you need to have different measurements on each side, a single declaration is easier and faster to write, the same goes for elements that have the same measurements on opposite sides, but if your element will only need the distance on one side, it makes better sense to use the property for that specific side, for example:
padding-bottom: 20px;.