css padding-left property


  Translation results:

padding

英[ˈpædɪŋ] 美[ˈpædɪŋ]

n.Padding; lining; redundant language; nonsense

v. To pad..., to add cushions (the present participle of pad); to walk, to walk lightly

left

英[left] 美[lɛft]

adj.Left, left; leftist

n.Left, left;[military] left wing;left wing, radical

adv.To the left; on the left

v.Leave (past tense and past participle of leave)

css padding-left propertysyntax

Function: Set the left padding of the element.

Description: This attribute sets the width of the left padding of the element. Left padding set on inline, non-replaced elements appears only to the left of the first inline box generated by the element.

Note: Negative values ​​are not allowed. All major browsers support the padding-left attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).

css padding-left propertyexample

<html>
<head>
<style type="text/css">
td {padding-left: 20px}
</style>
</head>

<body>
<table border="1">
<tr>
<td>
这个表格单元拥有左内边距。
</td>
</tr>
</table>
</body>

</html>

Run instance »

Click the "Run instance" button to view the online instance

Popular Recommendations

Home

Videos

Q&A