11-CSS Padding Properties

0
119

The CSS padding properties are used to generate space around content written in a paragraph or a block in a web page.

CSS has different paddings available:

  • padding-top
  • padding-right
  • padding-bottom
  • padding-left

 

Example:

[html]

padding Shorthand Property:

This is a paragraph which has no specified padding. A simple paragraph only

This paragraph has a top and bottom padding of 60px, a left padding of 90px and a right padding of 40px.

 

[/html]
Facebook Comments

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.