Page 1 of 1

Margin vs padding

Posted: Fri Nov 25, 2022 10:18 pm
by johnsmith0251
I'm trying to learn WWB a little better. Can someone help me better understand the difference between margin vs padding. They seem to do the same thing.

Re: Margin vs padding

Posted: Fri Nov 25, 2022 10:26 pm
by crispy68
They are not exactly the same. Think of it like this:

Padding - adds space inside the container/object
Margin - adds space on the outside of the container/object

In most cases, using either will get the results you need but not always. For example, if you wanted to add spacing to an image, you would not add Padding but would use margin. You want the spacing on the outside of the image not inside.

Re: Margin vs padding

Posted: Fri Nov 25, 2022 11:10 pm
by johnsmith0251
Thank you! Summed it up perfectly!

What is gutter width?

Re: Margin vs padding

Posted: Fri Nov 25, 2022 11:23 pm
by crispy68
Gutter is left and right spacing/padding for layout grid columns. This allows you to add even spacing between objects in a grid