Apply display property to the element with bootstrap class on different breakpoints.
Syntax:
.d-
for mentions display property..d-{breakpoint}-{value}
to set display property on different screen size..d-{value}
without breakpoint is always focus on extra small screen size.- List of breakpoints:
sm
- Small screen sizemd
- Medium screen sizelg
- Large screen sizexl
- Extra large screen sizexxl
- Extra extra large screen size
- List of display property value:
none
inline
inline-block
inline-flex
block
flex
grid
table
table-cell
table-row
<!--
The element hides on extra small devices,
displays as block on medium screen sizes and
displays as inline on large screen sizes
-->
<div class="d-none d-md-block d-lg-inline">...</div>
Apply display property to the elements when printing.
Syntax: .d-print-{value}
<!-- Display on screen but not on print screen -->
<div class="d-print-none">...</div>
<!-- Hides on screen but not on print screen -->
<div class="d-none d-print-block">...</div>