Block and Inline Elements
Explore how the CSS display property affects document flow by distinguishing block and inline elements. Understand when you can rely on default browser styles versus overriding them, and learn how to change inline elements like span into block-level elements to control layout behavior effectively.
We'll cover the following...
We'll cover the following...
In this lesson, we’ll continue exploring the CSS display property and how it affects the document flow. We’ll begin by seeing that we can omit adding our custom CSS classes if the style described in that class is the default style of an element.
We’ll also see how to override the default behavior of the <span> ...