concept display in category css

appears as: display, displays, display, The display
CSS in Depth

This is an excerpt from Manning's book CSS in Depth.

Declaring display: initial is equivalent to display: inline. It won’t evaluate to display: block regardless of what type of element you apply it to. That’s because initial resets to the initial value for the property, not the element; inline is the default value for the display property.

IE has a bug where <main> elements are rendered inline by default, rather than as blocks. We corrected that here by adding a display: block declaration.

Listing 3.19. Adding styles for the sponsor link
.sponsor-link { display: block; color: #0072b0; font-weight: bold; text-decoration: none; }
  • Use modern layout techniques like display: table or a flexbox to produce columns of equal height or to vertically center content.
  • Figure 8.11. Tabular data with display:block applied to each row and cell