Bootstrap Responsive Utilities


Bootstrap provides some helper classes for faster mobile-friendly development. These can be combined with large, small and medium devices through media queries to enable content to be shown and hidden on the device.

You need to use these tools with caution to avoid creating completely different versions of the same site. Responsive utilities currently only work with block and table switching.

##.visible-xs-*VisibleHideHide Hide.visible-sm-*HideVisibleHidehidden##.visible-md-*.visible-lg-*.hidden-xs.hidden-sm# #.hidden-mdVisibleVisibleHideVisibleVisibleFrom v3.2.0 version Starting from , classes of the form .visible-*-* have three variants for each screen size, each targeting a different display attribute in CSS, as listed below:

Super small screen
            Mobile phone (<768px)
Small screen
Tablet (≥768px)
Medium screen
Desktop (≥992px)
Large screen
Desktop (≥1200px)
hiddenhiddenvisiblehidden
HideHideHideVisible
hiddenvisiblevisiblevisible
VisibleHideVisibleVisible
##.hidden-lg
VisibleVisibleHide

Class GroupCSS display.visible-*-blockdisplay: block;display: inline;display: inline-block;So, taking the ultra-small screen (xs) as an example, the available .visible-*-* classes are: .visible-xs- block, .visible-xs-inline and .visible-xs-inline-block. The .visible-xs, .visible-sm, .visible-md and .visible-lg classes also exist. However, its use is no longer recommended starting from v3.2.0. They are mostly the same as .visible-*-block, except for the special case of <table> related elements.
.visible-*-inline
.visible-*-inline-block

Print classes

The following table lists the print classes. Use these toggles to print content.

classBrowser. visible-print-block         .visible-print-inline .visible-print-inline-blockvisible
Printer
hidden

visible
.hidden-print
hide