# CMS Slider: Possible to have Fixed width slides (in pixels)?

**URL:** <https://forum.finsweet.com/t/cms-slider-possible-to-have-fixed-width-slides-in-pixels/4397>\
**Category:** Slider\
**Created:** [March 11, 2025, 9:55pm UTC](https://forum.finsweet.com/t/cms-slider-possible-to-have-fixed-width-slides-in-pixels/4397 "2025-03-11T21:55:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![studio](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studio/32/3849_2.png) [@studio](https://forum.finsweet.com/u/studio)\
**Post date:** [March 11, 2025, 9:55pm UTC](https://forum.finsweet.com/t/cms-slider-possible-to-have-fixed-width-slides-in-pixels/4397/1 "2025-03-11T21:55:13Z")

</div>

## Description

My client wants the slides to have a fixed width of 384px on Desktop and 304px on tablet/mobile. I tried using **Slides Per View: Auto** but this only leaves us with a **percentage** option for the **Slide Size** setting. Is there a way to control the width of the slides using pixels? Thanks in advance!

## Site URL

- URL: polymathstg **dot** webflow **dot** io (forum isn’t letting me put more than 2 links in my post)
- Webflow Read-only link: [Webflow - Polymath 2025](https://preview.webflow.com/preview/polymathstg?utm_medium=preview_link&utm_source=designer&utm_content=polymathstg&preview=3fe50524fa3d8ab71b5b0f46047e0261&workflow=preview)

## Steps to Reproduce

1. Tried setting the Slides Per View to Auto
2. Tried using a Pixel value for the Slide Size setting
3. Also tried adding a fixed width in pixel value directly to the slides.

## Expected Behavior

Would expect the slider to show slides that have a 384px width on desktop (304px on tablet/mobile), without really caring about the number of slides visible at once.

## Actual Behavior

The slider seems to only work with a fixed number of visible slides, or with an Auto number of slides but with a Percentage value for the width of the slides.

## Video/Screenshots

- Screenshots (if applicable): Included screenshots of the intended design from Figma as well as the current look in Webflow/Finsweet:  
[Dropbox](https://www.dropbox.com/scl/fi/cl54xbfroju9pz663xtu0/webflow-tablet.png?rlkey=z5rxmi0wtffxn3s0lzt9fsys0&dl=0)

## Additional Context

- Browser: Chrome Version 132.0.6834.160
- Device: Macbook Pro 16"

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [March 12, 2025, 12:46pm UTC](https://forum.finsweet.com/t/cms-slider-possible-to-have-fixed-width-slides-in-pixels/4397/2 "2025-03-12T12:46:30Z")

</div>

Hey @studio! You can try setting the `slidesPerView` setting to auto and then setting the width for each breakpoint with CSS like in the example below

```css
[fs-slider-element='slide'] {
  width: 384px; /* Desktop width */
  margin-right: 24px;
}

/* Responsive for tablet and mobile */
@media (max-width: 991px) {
  [fs-slider-element='slide'] {
    width: 304px; /* Tablet and mobile width */
    margin-right: 24px;
  }
}

```

Let me know if this helps!

---

<div class="post-metadata">

**Author:** ![studio](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/studio/32/3849_2.png) [@studio](https://forum.finsweet.com/u/studio)\
**Post date:** [April 1, 2025, 2:56pm UTC](https://forum.finsweet.com/t/cms-slider-possible-to-have-fixed-width-slides-in-pixels/4397/3 "2025-04-01T14:56:22Z")

</div>

Hi Luis,  
Thank you so much. This is working for us!

I have another question (let me know if this should be in a new thread instead):  
**Is there a way to “lock” the slider navigation arrows when we’re at the first slide or the last slide?** I would like to achieve that to indicate the user that they can’t scroll further.

Thank you very much!  
Cheers

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [April 2, 2025, 5:46pm UTC](https://forum.finsweet.com/t/cms-slider-possible-to-have-fixed-width-slides-in-pixels/4397/4 "2025-04-02T17:46:31Z")

</div>

Hey @studio!

We have added this natively! Inside the app, you can see the combo class that gets added to the buttons when the slider cannot scroll any further.

 ![Screenshot 2025-04-02 at 18.41.59](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/6/6c27af9d279a7afb5347022cdb3b98eebc2b0de9.png)

Creating the combo class for the button should apply this style.

If not, I see you have added this style for disabled buttons.

```css
button[disabled], html input[disabled] {
  cursor: default;
}

```

Just add any style you’d like for the buttons!
