Padding CSS

By: Prof. Fazal Rehman Shamil
Last modified on May 14th, 2020

The padding in CSS means the outside space around an element’s content and inside space of the border etc.

 

Padding on individual Sides of an Element separately in CSS

Try it

Shorthand Property of Padding by 1 values in CSS

Try it

Shorthand Property of Padding by 2 values in CSS

Try it

Shorthand Property of Padding by 3 values in CSS

Try it

Shorthand Property of Padding by 4 values in CSS

Try it