Css
utility classes

Display classes

Display utilty classes are grouped into 9 classes based on block, grid, flex or table display type. These classes are:

block - for block elements
in-block - for inline-block elements
in-line - for inline elements
grid - for grid elements
in-grid - for inline-grid elements
flex - for flex boxes
in-flex - for inline-flex boxes
table - for table elements
in-table - for inline-table elements
The grid and flex utility classes are special classes which can be combined with their modifier attributes that determines how a content is displayed. For this reason, they are both discussed below:

Grid Items
Grid elements can be identified by their special class name "grid". The grid items are not entirely handled by the local css library. However, it provides utility class "grid-center" for aligning items to the center. This may prove useful in situations where items are needed to be centralized.

Hello in center
Example of "grid-center"
  
    <div class="px-140 grid-center bc-silver">
        Hello in center
    </div>

        

Flex Items
Any element that has the class of "flex" is considered as a flex item while "in-flex" is used to specify an inline-flex item. Flex is mostly used in form alignments. Flex items are greatly controlled by combining the name with other utility classes. Classes that can be combined with the flex or in-flex are mostly used for flex alignments. Some of the classes and their features are listed below:
flex-l - shifts a flex child item to the left
flex-lt - shifts a flex child item to the left top
flex-lb - shifts a flex child item to the left bottom
flex-r - shifts a flex child item to the right
flex-rt - shifts a flex child item to the right top
flex-rb - shifts a flex child item to the right bottom
flex-col / f-col - sets flex direction to column
flex-row / f-row - set flex direction to row
flex-col-m - sets flex direction to row on smaller screen size
flex-row-m - sets flex direction to column on smaller screen size
mid - centralizes the position of child items to the middle (vertically and horizontally) of the parent flex item
midl - centralizes the position of child items vertically to the middle left of the parent flex item
midr - centralizes the position of child items vertically to the middle right of the parent flex item
midv - centralizes the position of child items vertically
midh - centralizes the position of child items horizontally
just-left - justifies flex items to start
just-right - justifies flex items to end
just-center - justifies flex contents to center
flex-start - justifies flex contents to flex-start
flex-end - justifies flex contents to flex-end
flex-center - justifies and aligns flex contents to center
space-between - justifies contents using space-between
space-around - justifies contents using space-around
space-even - justifies contents using space-evenly

There is however a twist when it comes to setting flex items to 100 percent width. While flex-full is applied specially for items with flex property, in-flex-full is applied for items with inline-flex display property. The images below reveals the effect of flex boxes when other utility classes are applied with it.

Hello Hello
flex f-row
Hello Hello
flex f-col
Hello
flex mid
Hello
flex midh
Hello
flex midt
Hello
flex midv
Hello
flex midl
Hello
flex midr
Hello
flex midb
Hello
flex flex-l
Hello
flex flex-lt
Hello
flex flex-lb
Hello
flex flex-r
Hello
flex flex-rt
Hello
flex flex-rb
Hello
flex flex-c
Hello
flex just-left
Hello
flex just-right
Hello
flex just-center
Hello
flex flex-start
Hello
flex flex-end
Hello
flex flex-center
Hello Hello
flex space-between
Hello Hello
flex space-around
Hello Hello
flex space-even