Utilities
Visibility
Control the visibility of elements, without modifying their display, with visibility utilities.
View page source on GitHubSet the visibility of elements with the visibility utilities. These utility classes do not modify the display value at all and do not affect layout – .invisible elements still take up space in the page.
Elements with the .invisible class will be hidden both visually and for assistive technology/screen reader users.
Apply .visible or .invisible as needed.
<div class="visible">...</div>
<div class="invisible">...</div>.visible {
visibility: visible !important;
}
.invisible {
visibility: hidden !important;
}To hide an element visually but keep it available to screen readers, use .visually-hidden instead.