Block elements stack on top of each other. Inline elements are placed side by side.
CSS for JS Devs course
It's frustrating when a CSS declaration is technically valid (not crossed out in the browser's DevTools) but has no effect for some reason. Firefox DevTools can often tell you why and also how to potentially fix those issues!