VOOZH about

URL: https://www.geeksforgeeks.org/css/spectre-display-utilities/

⇱ Spectre Display utilities - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Spectre Display utilities

Last Updated : 23 Jul, 2025

This class accepts more than one value in Spectre Display utilities. All the properties are covered as in class form. It is the alternative to the CSS display property. This class is used to define how the components (div, hyperlink, heading, etc) are going to be placed on the web page. As the name suggests, this property is used to define the display of the different parts of a web page. Display utilities are used for display and hidden things.

Spectre Display utility class:

  • d-block: It is used to display an element as a block element.
  • d-inline: It is used to display an element as an inline element.
  • d-inline-block: It is used to display an element as an inline-level block container.
  • d-flex: It is used to display an element as a block-level flex container.
  • d-inline-flex: It is used to display an element as an inline-level flex container.
  • d-none: It is used to disappear the container.
  • d-hide: It is used to remove the element.
  • d-visible: It is used to make the container visible.
  • d-invisible: It is used to make the container invisible.
  • text-hide: It is used to hide the text from the element.
  • text-assistive: It is used to assist the texts.

Syntax:

<div class="d-block">
 ....
</div>

Example: Below example illustrate the Spectre Display utilities. We will use first five classes similarly, you can use other classes as per your requirement.

Output:

👁 Spectre Display utilities
Spectre Display utilities

Reference  Link: https://picturepan2.github.io/spectre/utilities/display.html#display

Comment