| CSS Padding |
|
The CSS padding properties describe the space between the element border and the element content. CSS Padding Properties The CSS padding properties define the space between the element border and the element content. Negative values are not allowed. The top, right, bottom, and left padding can be changed separately using separate properties. A shorthand padding property is also created to control multiple sides at once. How to set the left padding of a tablecell? <!-- created by phpguru.biz --> td {padding-left: 2cm} <!-- created by phpguru.biz --> How all the padding properties in one declaration? <!-- created by phpguru.biz --> td.test1 {padding: 1.5cm} <!-- created by phpguru.biz --> Browser support: IE: Internet Explorer, F: Firefox, N: Netscape. PHPGURU: The number in the "PHPGURU" column indicates in which CSS proposal the property is defined (CSS1 or CSS2).
Examples Set the left padding of a tablecell Set the right padding of a tablecell Set the top padding of a tablecell This example demonstrates how to set the bottom padding of a tablecell. All the padding properties in one declaration |
|||||||||||||||||||||||||||||||||||||||||||
| Last Updated ( Monday, 17 March 2008 ) | |||||||||||||||||||||||||||||||||||||||||||