code/html/css/Padding/README.md
1. CSS Padding for Individual Sides
CSS Padding property is used to create spacing between content of HTML Element and the border(if specified) around it.
Syntax:
<style>
HTML_element
{
border: {width} {style} {color};
padding: {value(s)};
}
</style>
<HTML_element> Content </HTML_element>
Example:
<style>
#el
{
border: 2px solid black;
padding: 40px;
}
</style>
<h1 id="el"> Heading with Padding specified </h1>
<h1 style="border:2px solid black;"> Heading without padding </h1>
CSS Padding property takes following input as its value: