CSS Spacing – The Difference Between Margin and Padding
There are 2 spacing properties that can be used with CSS for your blog design. You can use MARGIN and / or PADDING. So when do you use them? What’s the difference between them? In this tutorial we will be discussing CSS Spacing – the difference between margin and padding.
Before we get started:
New to HowToBlogDesign.com? Is this your first tutorial here? Are you coding ‘newbie’? Welcome! I suggest you start your journey to learning code by watching Ro’s introductory video … ‘Take On Code … and WIN >>‘
Also recommended before we jump right into CSS Spacing … be sure to already understand How to write CSS for bloggers >>
The Training — Understanding CSS spacing: the difference between margin & padding:
Margin and padding are the 2 ways we can space out the elements within our blog designs. Sometimes these properties can be confused … but they actually do very different things, and space things quite differently.
Basically … the quick answer is that margin allows for space OUTSIDE the border of an element, whereas padding adds space INSIDE the element’s border.
Both of these are coded separately … so check out this video tutorial to learn how to use both margin and padding…
No comments:
Post a Comment