Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.43 KB

customization-and-theming.display.md

File metadata and controls

52 lines (44 loc) · 1.43 KB

➲ Display:

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 size
    • md - Medium screen size
    • lg - Large screen size
    • xl - Extra large screen size
    • xxl - 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>

✦ Display for print:

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>

⇪ To Top

❮ Previous TopicNext Topic ❯

⌂ Goto Home Page☰ Goto Customization and Theming