Display Properties
Attributes that determine how elements are visually rendered on the screen that dictate the layout, positioning, and visibility of elements, shaping the overall appearance and structure of the web page.
Block
Styling attribute to define an element as a block-level element. These elements typically start on a new line and occupy the full width available to them, extending from the left edge of their containing element to the right edge: .hpu-d-block.
.hpu-d-block
.hpu-d-block
.hpu-d-block
Inline
Styling attribute to define an element as a inline-level element. These elements typically spans only with the element width, creating a horizontal orientation layout: .hpu-d-inline.
.hpu-d-inline
.hpu-d-inline
.hpu-d-inline
Inline Block
Flow horizontally like inline elements, allowing other elements to sit beside them on the same line, but they also retain block-level properties, such as the ability to have a width and height, margins, and padding: .hpu-d-inline-block.
.hpu-d-inline-block
.hpu-h10rem
.hpu-d-inline-block
.hpu-h10rem
.hpu-d-inline-block
.hpu-h10rem
Flex
Enables a flex container, allowing its child elements to dynamically adjust their size and alignment within the container and create complex layouts with a high degree of flexibility and responsiveness: .hpu-d-flex. For more usage information, refer to Flexbox.
Inline Flex
Combines the inline-level and flexbox layout models. It combines the inline-level behavior of elements, allowing them to flow inline with surrounding content, with the powerful flexbox capabilities for organizing and aligning items within the container: .hpu-d-inline-flex. For more usage information, refer to Flexbox.
Responsive Hidden Elements
For faster implementation of hiding and showing elements on a specific device. To hide elements simply use the .hpu-d-none class or one of the .hpu-d-none-{sm | md | lg |xl | xxl} classes for any responsive screen variation.
To show an element only on a given interval of screen sizes you can combine one .hpu-d-none-{sm | md | lg |xl | xxl} class with a .hpu-d-{display-element}-{screen size}. For example, .hpu-d-none .hpu-d-block-md .hpu-d-none-xl .hpu-d-none-xxl will hide the element for all screen sizes except on medium and large devices.
CURRENT SCREEN SIZE: xs sm md lg xl xxl
Class | Description | Result |
---|---|---|
.hpu-d-none | Hidden on all screens | |
.hpu-d-none .hpu-d-block-sm | Hidden on xs screens only | |
.hpu-d-none-sm .hpu-d-block-md | Hidden on sm screens only | |
.hpu-d-none-md .hpu-d-block-lg | Hidden on md screens only | |
.hpu-d-none-lg .hpu-d-block-xl | Hidden on lg screens only | |
.hpu-d-none-xl .hpu-d-block-xxl | Hidden on xl screens only | |
.hpu-d-none-xxl | Hidden on xxl screens only | |
.hpu-d-block (or .hpu-d-inline or .hpu-d-inline-block or .hpu-d-flex or .hpu-d-inline-flex) |
Visible on all screens | |
.hpu-d-block .hpu-d-none-sm | Visible on xs screens only | |
.hpu-d-none .hpu-d-block-sm .hpu-d-none-md | Visible on sm screens only | |
.hpu-d-none .hpu-d-block-md .hpu-d-none-lg | Visible on md screens only | |
.hpu-d-none .hpu-d-block-lg .hpu-d-none-xl | Visible on lg screens only | |
.hpu-d-none .hpu-d-block-xl .hpu-d-none-xxl | Visible on xl screens only | |
.hpu-d-none .hpu-d-block-xxl | Visible on xxl screens only |