The Margin Area

Margins in CSS work pretty much like padding, except for one thing...

We'll cover the following

While padding represents​ inner spacing within the the hypothetical box, margins represent outer spacing i.e spacing outside the box.

So, assume you had this box of clothes. This time, 2 boxes!

Get hands-on with 1400+ tech skills courses.