Layout Utilities
Layout utilities help you control how elements are positioned and displayed on the page.
Display
Control how an element is displayed.
Available classes:
sb-block: Display as blocksb-inline: Display as inlinesb-inline-block: Display as inline-blocksb-flex: Display as flex containersb-grid: Display as grid containersb-hidden: Hide element
Position
Control how an element is positioned.
Available classes:
sb-static: Default positioningsb-relative: Relative positioningsb-absolute: Absolute positioningsb-fixed: Fixed positioningsb-sticky: Sticky positioning
Position helpers:
sb-inset-0: All sides set to 0sb-top-0: Top: 0sb-right-0: Right: 0sb-bottom-0: Bottom: 0sb-left-0: Left: 0
Z-Index
Control stacking order.
Available classes:
sb-z-0throughsb-z-50(increments of 10)sb-z-auto: Auto z-index
Overflow
Control how content overflows.
Available classes:
sb-overflow-auto: Add scrollbars when neededsb-overflow-hidden: Hide overflowsb-overflow-visible: Show overflowsb-overflow-scroll: Always show scrollbarssb-overflow-x-auto: Auto overflow horizontallysb-overflow-y-auto: Auto overflow vertically
Container
The container class:
- Centers content horizontally
- Adds responsive padding
- Sets max-width based on breakpoints:
- sm: 640px
- md: 768px
- lg: 1024px
- xl: 1280px
Combine position utilities with z-index for complex layouts.
<div class="sb-relative">
<div class="sb-absolute sb-top-0 sb-right-0 sb-z-10">
Floating element
</div>
</div>
Continue to Sizing Utilities