CSS – Cascading Style Sheet
In this lecture you will learn cell padding
The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
With CSS, you have full control over the padding. There are properties for setting the padding for each side of an element (top, right, bottom, and left).
Padding - Individual Sides
CSS has properties for specifying the padding for each side of an element:
padding-top
padding-right
padding-bottom
padding-left
All the padding properties can have the following values:
length - specifies a padding in px, pt, cm, etc.
% - specifies a padding in % of the width of the containing element
inherit - specifies that the padding should be inherited from the parent element
for instance padding css examples with source code here:
Using individual padding properties
This div element has a top padding of 50px, a right padding of 30px,
a bottom padding of 50px, and a left padding of 80px.
in the above shown example applied padding in css to a html tag elements, in this example source code written in div tag is applied on style attribute with parameters are having with their values.
similarly one div tag of html element is also applied for padding