How to customize grid layouts with colSpan on Shipixen
Customize grid layouts with colSpan on Shipixen by accessing the Grid component settings and adjusting column span values for individual grid items. Use the visual grid editor to set responsive breakpoints and ensure proper alignment across different screen sizes.
Prerequisites
- Basic understanding of CSS Grid
- Active Shipixen project
- Familiarity with Shipixen's component system
- Knowledge of responsive design principles
Step-by-Step Instructions
Access the Grid Component
Configure Grid Container Settings
grid-cols-12 for a 12-column layout. Enable Responsive Grid to customize layouts for different breakpoints including mobile, tablet, and desktop views.Add Grid Items
Set Column Span Values
col-span-1 through col-span-12 depending on your grid configuration.Configure Responsive Breakpoints
md:col-span-6 for medium screens and lg:col-span-4 for large screens.Adjust Grid Gaps and Alignment
justify-center, align-start, or align-stretch.Preview and Test Responsiveness
Apply Custom Styling and Publish
Common Issues & Troubleshooting
Grid items are overlapping or not aligning properly
Check that your total colSpan values don't exceed the grid column count. Ensure you've set grid-cols-X where X matches your intended layout structure.
Responsive breakpoints not working as expected
Verify that responsive classes are properly applied using the format sm:col-span-X, md:col-span-X, lg:col-span-X. Clear browser cache and test in incognito mode.
Grid layout breaks on mobile devices
Set appropriate mobile colSpan values, typically col-span-12 for full width on small screens. Use Mobile First approach in the responsive settings panel.
Custom colSpan values not saving
Ensure you're clicking Apply Changes after modifying colSpan settings. Check that your Shipixen project has proper write permissions and try refreshing the editor interface.