<p class="text">10px of padding on the top. 20px of padding on the right. 30px of padding on the bottom. 40px of padding on the left.</p>
.text {
  margin: auto;
  font-size: 20px;
  text-align: center;
  width: 30%;
  border: 2px solid red;
  padding: 10px 20px 30px 40px;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.