In this section, we will learn what the margin-left property is and how to use it in CSS.
CSS margin-left Property Definition and Usage
The CSS `margin-left` property is used to set the left margin of an element in an HTML document.
CSS margin-left Property Syntax
margin-left: length|auto|initial|inherit;
CSS margin-left Property Value
The value of this property is a number with relative, or absolute units supported in CSS.
Note: you can also use the two global values “initial” and “inherit” for this property.
Example: margin-left in CSS
See the Pen margin-left in CSS by Enjoy Tutorials (@enjoytutorials) on CodePen.