Sharing this response to address the issue of lengthy comments in the accepted answer and its incompleteness. Within Bootstrap 4 beta, it's important to note that the hidden-*
classes no longer have a presence.
"What does hidden-sm-DOWN mean?"
In previous versions, "hidden-sm-DOWN" implied being hidden on small screens and below (on xs
and sm
breakpoints), while remaining visible otherwise. However, in Bootstrap 4 beta, these classes are no longer used.
To achieve element visibility control based on specific breakpoints in Bootstrap 4, utilize the d-*
display classes accordingly. Keep in mind that xs
is always implied unless altered by a larger breakpoint. With the default xs
, there's no need for the -xs-
infix – use d-none
instead of d-xs-none
.
Visit this link for an example
hidden-xs-down
translates to d-none d-sm-block
hidden-sm-down
converts to d-none d-md-block
hidden-md-down
changes to d-none d-lg-block
hidden-lg-down
becomes d-none d-xl-block
hidden-xl-down
equals d-none
(similar to hidden
)
hidden-xs-up
equals d-none
(same as hidden
)
hidden-sm-up
transforms into d-sm-none
hidden-md-up
turns into d-md-none
hidden-lg-up
shifts to d-lg-none
hidden-xl-up
corresponds to d-xl-none
hidden-xs
exclusively equates to d-none d-sm-block
(similar to hidden-xs-down
)
hidden-sm
solely represents d-block d-sm-none d-md-block
hidden-md
only signifies d-block d-md-none d-lg-block
hidden-lg
specifically denotes d-block d-lg-none d-xl-block
hidden-xl
solely implies d-block d-xl-none
visible-xs
indicates d-block d-sm-none
visible-sm
shows d-none d-sm-block d-md-none
visible-md
displays d-none d-md-block d-lg-none
visible-lg
exhibits d-none d-lg-block d-xl-none
visible-xl
reveals d-none d-xl-block
Preview all hidden / visible classes in Bootstrap 4 beta here
Note that d-*-block
can be interchanged with d-*-inline
, d-*-flex
, etc., depending on the element's desired display type. For more details, check out the beta display classes
Additional resources:
Troubleshooting Bootstrap 4 hidden-X-(down/up) class issues
Locating missing visible-** and hidden-** functionalities in Bootstrap v4