Block-level vs. Inline Elements

A tutorial describing the differences between block level and inline elements in CSS. The demo explores what happens when you change margin, padding, height and width on these different types of elements and also how you can change the "display" property.

This is a beginner level CSS tutorial that could be useful to intermediates who still get confused why things don't always behave the way you want when you add margin, padding, height or width.