How can I align all of the slides in my testimonial slider horizontally centered in Webflow?

TL;DR
  • Set the Slide element to Flex with Align: Center and Justify: Center to align content centrally.  
  • Ensure no conflicting margins/paddings, use 100% width, and center inner wrappers and text with margin: auto or text-align: center.

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 floatabsolute 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.

Rate this answer

Other Webflow Questions