CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS padding top Property

CSS padding-top Property



The padding-top property is used to set the top padding of an element. We can use negative values in it.


Default Value:-


Its default value is 0.




Its syntax is:- padding-top: length | initial | inherit;


Further Explanation:-


Value Description
length Specifies fixed top padding in px, cm, em, etc.
% Specifies top padding in percent of the width of the containing element
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS