paint-brush
Understanding CSS Margin and Padding With Simple Analogiesby@olooine
2,721 reads
2,721 reads

Understanding CSS Margin and Padding With Simple Analogies

by Oloo Moses3mMay 3rd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Understanding CSS Margin and Padding With Simple Analogies. These properties allow the creation of an elegant block in HTML and CSS. The CSS margin properties are used to create space around elements, outside of any defined borders. You can set values for the padding on each side of the box using the following properties: margin-top: 10 px; margin-left: 20 px. margin-bottom: 10p; margin: 100 px. margin-right: Specifies the right margin of an element. margin left: 20p; padding left: 10x; /* Specifies left padding on an element.*/

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Understanding CSS Margin and Padding With Simple Analogies
Oloo Moses HackerNoon profile picture
Oloo Moses

Oloo Moses

@olooine

L O A D I N G
. . . comments & more!

About Author

Oloo Moses HackerNoon profile picture
Oloo Moses@olooine

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite