If your testimonial slides aren’t horizontally centered in your Webflow slider, it's likely due to misaligned flex settings or padding/margins. Here's how to center them all properly.
1. Set the Slide Container to Center Content
- Select the
Slide element (inside the Slider component). - In the Style panel, set Display: Flex.
- Set Flex Direction: Vertical (Column).
- Set Justify: Center (to center vertically, if needed).
- Set Align: Center to horizontally center all inner content.
2. Check Slide Width and Positioning
- Make sure the Slide has no conflicting margin or padding that would offset its content.
- Set Width: 100% for the Slide (optional, but helps with consistency).
3. Center Text Elements Inside Each Slide
- For each testimonial text block or div, check that:
- Text Align is set to Center.
- The containing div or element is also centered using margin: auto or text-align: center under Typography settings.
4. Adjust the Slide Content Wrapper if Needed
- If each slide has a wrapper div inside it (e.g.,
testimonial-content), apply Display: Flex to that wrapper. - Set Align Items: Center, and Justify Content: Center.
5. Remove Conflicting Styles
- Remove or adjust float, absolute positioning, or manual paddings/margins that might push elements off-center.
- Also check desktop vs. mobile styles by examining other breakpoints.
Summary
To horizontally center all your testimonial slides in Webflow, apply Flexbox styling to the Slide element with Align: Center, and ensure inner wrappers and text blocks also use centered alignment. Make sure no margins, paddings, or float properties are conflicting.