Skip to Main Content

Displays

Using Displays

This attribute allows you to specify a basic display value for an element.

Markup

<div data-c-display="VALUE"></div>

Available Arguments

# VALUE

block
inline
inline-block
table
grid
flex
none

In Practice

<!--Display a div as an inline element.-->
<div data-c-display="inline"></div>

<!--Display a span as a block element.-->
<span data-c-display="block"></span>

Changelog

Version 2.4.15