Geeks With Blogs
Stephanie Grima C#, ASP.NET and my life.


CSS : Padding Property

Padding is the space between the element’s content and border. Padding may be defined at once, or according to where you would like it, meaning: padding-top, padding-bottom, padding-right, padding-left.

Illustration of the CSS box model. The area between content and border is highlighted in yellow.

The following is how to declare the padding property for multiple sides:
      padding: 25px;
The following is how to declare padding according to where it is needed:
      padding-left: 10px;
      padding-right: 10px;


Posted on Friday, November 7, 2008 7:13 PM HTML / CSS | Back to top

Comments on this post: Part 4: Padding: Property [CSS]

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Steffi | Powered by: