Skip to main content

Visibility

Hide content in a responsive and accessible way

Overview #

Use the visibility utilities to hide content in a responsive and accessible way.

Examples #


<div class="rvt-display-none">This element is hidden</div>

Usage #

To hide an element, use the .rvt-display-none utility class.

Use the .rvt-sr-only utility class to visually hide content but still leave it accessible to screen readers.

Hide content on smaller screens #

The rvt-hide-*-down responsive display utilities start out visible on any screen size above the largest breakpoint (1400px) and will hide content as the screen size becomes smaller.

  • .rvt-hide-sm-down
  • .rvt-hide-md-down
  • .rvt-hide-lg-down
  • .rvt-hide-xl-down
  • .rvt-hide-xxl-down

Hide content on larger screens #

The rvt-hide-*-up responsive display utilities start out visible on small screens and will hide content as the screen size becomes larger.

  • .rvt-hide-sm-up
  • .rvt-hide-md-up
  • .rvt-hide-lg-up
  • .rvt-hide-xl-up
  • .rvt-hide-xxl-up