Welcome to the Treehouse Community
Looking to learn something new?
Introduction to HTML and CSS course. Quiz question: Margin and padding are used to increase and decrease the space around and element. The video states that the Margin property is used to increase and decrease the space INSIDE the element where as the padding property alone is used to increase and decrease the space AROUND the element. I found this question to be a bit misleading.
Steven Parker220,937 Points
You have that backwards. The margin property is used to increase and decrease the space around an element (outside the borders, if any), and the padding property is used to increase and decrease the space inside the element borders.
As to the quiz, from the visual perspective, both margin and padding increase space, so I can see reasoning for "yes" being the answer. And both do affect the space around the content area. But I can also see your point about it being confusing to lump them together and use the word "around". You might want to report this as a bug to Treehouse Support.
Thank You for your answer and approaching with an open mind. You are absolutely right I did type that up backwards. Margin = around - padding = inside. I can see their perspective as well but only if you didn't have a border around your element. I am not sure the effect of a wrong answer in a quiz. If you were striving for points I suppose it would be annoying. The video does give you the correct description just the question is vauge.