There is a newer version of Luda.

Let's go!

Display

Use display utilities to control an element's display property responsively.

Introduction

Display utilities are classes for setting the value of the display property. The display property is widely used in front-end development, if you’re not familiar with it, please read this tutorial at first.

Display utility classes are extended with the screen width breakpoint postfixes. They are named using the format: .d-{value}-{postfix}. The value can be one of none, inline, inline-block, block, inline-flex, flex, table, table-cell and table-row.

There is also a .d-none-print class for hidding elements when print.

Example

In the below example, we hide the div on small screens and large screens, and show it only on middle size screens.

<div class="d-none d-block-m d-none-l p-medium bc-primary"></div>