-
Notifications
You must be signed in to change notification settings - Fork 5
Extensions Max Width
github-actions[bot] edited this page Feb 9, 2026
·
1 revision
Compatible With: All blocks except Spacer, Separator, Navigation, Section, Row, Grid Since: 1.0.0
The Max Width Extension adds a max-width control to blocks, allowing you to constrain their width directly in the editor. Perfect for creating centered content columns, limiting line length for readability, or creating asymmetric layouts.
Key Features:
- Set max-width in px, em, rem, %, vw, vh
- Auto-centering (margin auto)
- Respects text/block alignment (left, center, right)
- Works with all non-container blocks
- Visual preview in editor
- Select any block (paragraph, image, heading, etc.)
- Open Width panel in sidebar
- Set Max width (e.g., "600px", "80%", "40rem")
- Block automatically centers with auto margins
- Adjust alignment if needed (left, center, right)
- Max width: Maximum width constraint (supports px, em, rem, %, vw, vh)
- Leave empty for no constraint (full width)
-
Center/No Alignment:
margin: 0 auto(centered) -
Left Alignment:
margin-left: 0, margin-right: auto -
Right Alignment:
margin-left: auto, margin-right: 0
- Spacer/Separator: Already have size controls
- Navigation/Page List: Navigation elements
- Section/Row/Grid: Container blocks have native width controls
Limit paragraph width to 600-750px for optimal reading (45-75 characters per line).
Set image max-width to 800px and center in wide container.
Create left-aligned content at 70% width for modern editorial style.
Constrain width of background-colored groups for emphasis.
DO:
- Use rem/em for scalable, accessible widths
- Limit text blocks to 600-750px for readability
- Use % widths for fluid, responsive designs
- Combine with alignment for asymmetric layouts
- Test at different viewport sizes
DON'T:
- Set max-width larger than container (no effect)
- Use on container blocks (use their native width controls)
- Forget to test on mobile (may need responsive adjustments)
- Use for every block (let content breathe)
- Mix units inconsistently (pick px OR rem, not both)
- Readable Text: 65 characters per line = ~600-750px (16px font)
- Golden Ratio: Use 61.8% width for aesthetically pleasing proportions
-
Viewport Units:
80vwcreates width relative to viewport - Responsive: Combine with Responsive Visibility for device-specific widths
- Nested Blocks: Max-width applies to block wrapper, not nested content
- Debugging: If no effect, check parent container constraints
- Applies inline styles to block wrapper (high specificity)
- Uses
!importantin editor for consistent preview - Automatically adds auto margins for centering
- Container blocks (Section/Row/Grid) excluded (use native
contentWidthattribute) - Works with FSE and classic editor
Auto-generated from
docs/extensions/MAX-WIDTH.md. To update, edit the source file and changes will sync on next push to main.
- Accordion
- Blobs
- Breadcrumbs
- Card
- Comparison Table
- Countdown Timer
- Counter Group
- Divider
- Flip Card
- Form Builder
- Grid
- Icon
- Icon Button
- Icon List
- Image Accordion
- Map
- Modal
- Modal Api Reference
- Modal Auto Triggers
- Modal Fse Compatibility
- Modal Gallery Navigation
- Modal Next Phase
- Modal Performance Fixes
- Modal Security Audit
- Modal Security Fixes Summary
- Modal Trigger
- Pill
- Progress Bar
- Reveal
- Row
- Scroll Accordion
- Scroll Gallery
- Section
- Slider
- Table Of Contents
- Tabs
- Timeline
- Animation
- Background Video
- Block Animations
- Clickable Group
- Custom Css
- Expanding Background
- Grid Mobile Order
- Grid Span
- Max Width
- Responsive Visibility
- Reveal Control
- Scroll Parallax
- Sticky Header
- Text Alignment Inheritance
- Text Reveal
- Ai Assisted Development
- Best Practices Summary
- Block Controls Organization
- Block Development Best Practices Comprehensive
- Block Exclusion Guide
- Control Reorganization
- Design System
- Wordpress Block Editor Best Practices
- Color Controls Pattern
- Custom Css Filters
- Performance Css Strategy
- Width Css Strategy Implementation
- Width Layout Patterns
- Antigravity Audit
- Card Block Audit
- Claude Audit
- Comprehensive Audit
- Cursor Audit
- Scroll Accordion Stacking Notes
- Security Review 1.2.1
- 2026 02 11 Icon Search Aliases Design
- 2026 02 14 Overlay Header Design
- 2026 02 15 Deactivation Block Migrator Design