Difference between padding-left and left property CSS
What are the differences between padding-left a开发者_如何学Pythonnd left property in CSS ?
padding-left
creates padding on the left side of an object's box. This is space that appears inside the box, causing the overall width of the element to increase.
left
is used to position an element, where the value given moves the element from its left edge. This is usually used in conjunction with the positioning
rule.
padding-left
- defines padding of inner elements
left
- defines position of that element
精彩评论