Back to Freecodecamp

The Box Model Lesson J

curriculum/challenges/english/blocks/top-the-box-model/64a674a47a7d00f97013ed11.md

latest802 B
Original Source

--description--

Because the box model concept is so incredibly fundamental, let’s dig a bit deeper with <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/The_box_model#what_is_the_css_box_model" target="_blank">this lesson from MDN</a>. It covers the same material as the video above and will introduce you to inline boxes that we will explore in the next lesson. Pay close attention to the examples and take the time to experiment with their in-browser editor!

--questions--

--text--

Would you use margin or padding to create more space between 2 elements?

--answers--

Padding


Both margin and padding can be used interchangeably


Neither margin nor padding can be used to create more space between elements


Margin

--video-solution--

4