CSS padding-top property

The padding-top specifies the top padding of an element. It sets the top padding of an element. This can take a value in terms of length of %.

Example

   
   
   
      

         This is a paragraph with a specified top padding      

     

         This is another paragraph with a specified top padding in percent      

   
Updated on: 2020-02-03T06:36:17+05:30

111 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements