You can affect the way a user agent displays by setting a value for the property
display. Now that we’ve taken a close look at visual formatting, let’s consider the
display property and discuss two more of its values using concepts from earlier in the book.
Altering Element Display
|Applies to:||All Elements|
|Computed value:||Varies for floated, positioned, and root elements otherwise, as specified|
We’ll ignore the table-related values, since they’re far too complex for this text, and we’ll also ignore the value
list-item since it’s very similar to block boxes. We’ve spent quite some time discussing block and inline boxes, but let’s spend a moment talking about how altering an element’s display role can alter layout before we look at