Skip to main content
Version: 2.1

Show/Hide Class API

The show/hide API allows you to control the visibility of elements depending on the size of the screen. This page describes how to use the show/hide API with class selectors.

Usage​

The classes have the following naming scheme:

  • show-[mediaQueryName]
  • hide-[mediaQueryName]

With mediaQueryName being the name of one of the available media queries.

Example​

<div class="show-gt-sm">I will only be visible on screens wider than 969px.</div>
info

While the responsive API generally is opt-in, the show/hide selectors are always available, even if you choose to not use the responsive API.