CSS: Display Properties differences

css

Solution

Block elements will typically stack vertically whereas inline elements will line up horizontally.

Two Divs will stack on top of each other, but if you set them to display:inline, they will be next to each other horizontally. Vise-versa with Span tags.

Problem

What is the difference between display:block and display:inline

Original source