Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

617 B
Raw Blame History

title
title
Add Different Padding to Each Side of an Element

Add Different Padding to Each Side of an Element


Problem Explanation

To adjust the padding of an element use:

.example {
  padding: 10px;
}

To specify padding sizes on an element by individual sides we can use padding-top, padding-right, padding-bottom, and padding-left. We can use any of these in combination and in any order. For example:

.example {
  padding-top: 5px;
  padding-bottom: 0px;
}

Or:

.example {
  padding-top: 20px;
  padding-left: 25px;
  padding-right: 5px;
}