padding
英[?p?d??] 美[?p?d??]
n.Padding; lining; redundant language; nonsense
v. To pad something, to add cushions (present participle of pad); to walk, to walk lightly
css padding property syntax
Function: Set all padding properties in one statement.
Description: This abbreviation attribute sets the width of all padding of the element, or sets the width of the padding on each side. Padding set on inline, non-replaced elements does not affect line height calculations; therefore, if an element has both padding and a background, it may visually extend into other lines and possibly overlap other content. . The element's background extends across the padding. Negative margin values ??are not allowed.
Note: Negative values ??are not allowed. All browsers support the padding attribute.
css padding property example
<html> <head> <style type="text/css"> td.test1 {padding: 15px} td.test2 {padding: 10px 25px} </style> </head> <body> <table border="1"> <tr> <td class="test1"> 這個(gè)表格單元的每個(gè)邊擁有相等的內(nèi)邊距。 </td> </tr> </table> <br /> <table border="1"> <tr> <td class="test2"> 這個(gè)表格單元的上和下內(nèi)邊距是 10px,左和右內(nèi)邊距是 25px。 </td> </tr> </table> </body> </html>
Run instance ?
Click the "Run instance" button to view the online instance