Coding task · HTML and CSS course · Module 3: CSS Basics

Display Block and Inline Values

Use display block and inline like stacking stones in a pyramid.

Task

In style.css, uncomment display: block (.block-stone), display: inline (.inline-stone) and display: inline-block (.inline-block-stone), and the widths width: 200px and width: 120px. Compare how the stones are arranged and on which of them the width works.