- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
<html> <head> </head> <body> <p style = "padding-top: 10px; border:1px solid red;"> This is a paragraph with a specified top padding </p> <p style = "padding-top: 10%; border:1px solid red;"> This is another paragraph with a specified top padding in percent </p> </body> </html>
- Related Articles
- Perform Animation on CSS padding-top property
- CSS padding property
- CSS padding-right property
- CSS padding-bottom property
- CSS padding-left property
- Animate CSS padding-bottom property
- Animate CSS padding-left property
- Animate CSS padding-right property
- The padding shorthand Property in CSS
- Specify the top padding of an element with CSS
- Animate CSS border-top property
- CSS top property with Animation
- Animate border-top-width CSS property
- Animate CSS border-top-color property
- CSS border-top-left-radius property

Advertisements