Now that you are familiar with how block boxes and inline boxes behave, it is a good time to learn about a display value of inline-block. This value tells the browser to treat the contents of the element as a singular block but lay the block inline with other inline elements.
This is the main difference from inline boxes, where content from different inline elements can appear to flow into each other. And distinct from block boxes, which do not appear on the same line as each other.
Inline block boxes have the characteristics of block boxes, which mean you can set width and height values on them. Margins and paddings also take up all four sides of the box.
Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson