CSS-paddings:

The padding property allows you to specify how much space should appear between the content of an element and its border:


All CSS Padding Properties

Property        Description

padding        A shorthand property for setting all the padding             properties in one declaration

padding-bottom    Sets the bottom padding of an element

padding-left    Sets the left padding of an element

padding-right    Sets the right padding of an element

padding-top    Sets the top padding of an element


Example: 

<html>

<head>

<style>

h4

{

padding:2cm;

}

h5

{

padding:0.5cm 3cm;

}

</style>

</head>

<body>

<h4>This text has equal padding on each side.</h4>

<h5>This text has a top and bottom padding of 0.5cm</h5>

</body>

</html>