Zazz Design Framework
Reference

Display

Utilities for setting the display type of an element.

Class reference

ClassProperty
hiddendisplay: none
blockdisplay: block
inline-blockdisplay: inline-block
inlinedisplay: inline
flexdisplay: flex
inline-flexdisplay: inline-flex
griddisplay: grid

Examples

<div class="hidden">Off-screen entirely.</div>

<div class="block">Block-level, full width by default.</div>

<span class="inline-block">In-flow but with width and height honored.</span>

<div class="flex items-center gap-sm">
  <span>Inline-aligned</span>
  <span>via flex</span>
</div>

<div class="grid grid-cols-3 gap-md">
  <div>Cell</div>
  <div>Cell</div>
  <div>Cell</div>
</div>

Hiding accessibly

Use hidden to remove an element from layout and the accessibility tree. For visual-only hiding that keeps the content available to screen readers, use sr-only instead.

On this page