A CSS tutorial explaining how block, inline and inline-block elements each behave and why you might switch an element's display property. It suits people learning CSS.
What you’ll learn
✓Explain how block, inline and inline-block elements differ in layout
✓Predict how changing an element's display property affects its box and flow
✓Choose the display value that suits a layout need