#padding-left
Defines the space inside the element, on the left side.
默认属性
padding-left: 0;
Removes any padding on the left.
padding-left: 50px;
You can use pixel values.
padding-left: 7em;
You can use (r)em values.
The value is relative to the font size:
- em: relative to the element's current font size
- rem: relative to
<html>
the root element's font size
padding-left: 30%;
You can use percentage values.
The percentage is based on the width of the element.