CSS PADDING
This is a shorthand property which allows an author to specify ‘padding-top’, ‘padding-right’, ‘padding-bottom’, and ‘padding-left’ properties using a single property and value notation (the values are given in this order separated by spaces.) If one or more of the values are not present, the value for a missing side is taken from the opposite side that is present. If only one value is listed, it applies to all sides. The rendered surface of the padding area is taken from the ‘background’ property.
Example
body {
padding: 5px 5px 2px 25px
}
some content
Possible Values
inherit: Explicitly sets the value of this property to that of the parent.
[length]: Refers to either an absolute measurement or a relative measurement based on the current element’s font size.
[percentage]: Refers to a percentage of the width of the current element’s containing block.
4 Responses
Hi,
I have gone through this site for reference when i am doing development. It is very usefull for me.
One small suggestion about this site. When reading this site content like Please provide sample layout also for each topic.
Why i am telling this, While new person or learning person reading here they can reffere this sample layout and easily understand.
So i feel sample layout is must for learning people.
Kindly considered this request.
Thanks & Regards
Vengat
Is this property treated the same by Internet Explorer 7 and IE 8 and Firefox 3.6?
Still working on a website, this site is really awesome.
I think this will be better if you put some examplet :)