css padding property
Translation results:
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 propertysyntax
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 propertyexample
<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"> 这个表格单元的每个边拥有相等的内边距。 </td> </tr> </table> <br /> <table border="1"> <tr> <td class="test2"> 这个表格单元的上和下内边距是 10px,左和右内边距是 25px。 </td> </tr> </table> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance