Skip to content
Indiana University Logo
Rivet Design System
  • Components Add-ons Content guide Migration guide
  • What is Rivet? Blog Changelog
  1. May 4, 2022

    Rivet 2.0.0-beta.4 release

    The fourth Rivet 2 beta release introduces design updates to several components and a new responsive table wrapper element.

  2. March 30, 2022

    Rivet 2.0.0-beta.3 release

    The third Rivet 2 beta release updates accordion, badge, and button styles.

  3. February 9, 2022

    Rivet 2.0.0-beta.2 release

    The latest Rivet 2 beta release introduces the link hub component, adds new utility classes, and refactors component JavaScript.

More posts Get updates in your inbox
Install via NPM Download CSS & JS Hosted assets
Navigation
    • Components
    • Add-ons
    • Content guide
    • What is Rivet?
    • Blog
    • Roadmap
    • Changelog
  • Use Rivet
Resources
  • User Experience Office
  • Accessibility Evaluations
  • Rivet Software Design System
  • IU Framework for WCMS
Rivet 1 has been retired and will no longer receive updates. The v1 source code has been archived here. Please migrate to Rivet 2 as soon as possible.
Version 1.8.3
  • Information
    • Changelog
    • Component status
    • Contributing
  • Getting started
    • Install with NPM
    • Rivet Sass
  • Layout
    • Box
    • Grid
    • Panels
    • Spacing
    • Typography
  • Page content
    • Badges
    • Links
    • Lists
    • Media Object
    • Step Indicator
    • Tables
    • Tabs This component requires JS
    • Timeline
  • Forms
    • Buttons
    • Segmented Buttons
    • Checkboxes
    • File input This component requires JS
    • Input group
    • Radio buttons
    • Select element
    • Text inputs
  • Navigation
    • Breadcrumb
    • Dropdown This component requires JS
    • Footer
    • Header This component requires JS
    • Menu
    • Pagination
  • Overlays & Feedback
    • Alerts This component requires JS
    • Loading indicator
    • Modals This component requires JS
  • Utilities
    • Border
    • Display
    • Flex
    • Text
    • Visibility
    • Width
    • z-index
Ready Added in 1.0.0

Display

Use Rivet's display utilities to make content containers behave like block or inline elements.

Migrating to Rivet 2

This version of Rivet is deprecated. View the display utilities documentation on the Rivet 2 website.

Display property utilities

The Rivet rvt-display-* utilities can be used to easily change the css display: property. The display utilities included in Rivet are:

  • .rvt-display-inline
  • .rvt-display-inline-block
  • .rvt-display-block
  • .rvt-display-flex
    • .rvt-vertical-center (only works with .rvt-display-flex)
Display inline
<div class="rvt-display-inline bg-midnight">Display inline</div>
Display block
<span class="rvt-display-block bg-green">Display block</span>
Class deprecation

In previous versions of Rivet, we used the .rvt-display-flex and .rvt-vertical-center classes to lay out items in a container. These classes are now deprecated in favor of the new Rivet flex utility classes.

If you are using .rvt-display-flex or .rvt-vertical-center, please update your application to use the new flex utility classes.

Flex child
Flex child
Flex child
<div class="rvt-display-flex">
    <div class="bg-orange rvt-m-right-sm">Flex child</div>
    <div class="bg-orange rvt-m-right-sm">Flex child</div>
    <div class="bg-orange rvt-m-right-sm">Flex child</div>
</div>

Vertically centered flex children

You can use the .rvt-vertical-center along with .rvt-display-flex to vertically center child elements. This sets the align-items property to center.

Flex child
Flex child
Flex child
<div class="rvt-display-flex rvt-vertical-center" style="height: 200px; background-color: #ddd;">
    <div class="bg-orange rvt-m-right-sm">Flex child</div>
    <div class="bg-orange rvt-m-right-sm">Flex child</div>
    <div class="bg-orange rvt-m-right-sm">Flex child</div>
</div>

On this page

  • Display property utilities
    • Vertically centered flex children
  • Accessibility
  • Privacy Notice
  • Copyright © The Trustees of Indiana University