0

how can to edit or disable width "owl-item" in owl carousel?

my Meaning inside the photo : enter image description here

I acted through

( style.css > .owl-item { width : 80px;} ) , but did not work

Hyper Learn
  • 45
  • 2
  • 6

1 Answers1

3

If you want to override the div's width in style.css -> change it as below,

.owl-item { width : 80px !important; }

!important -> Specified style Will be applied to the css elements irrespective of the style being mentioned in the element.

If you want to know how it get applied just have a look in the link

Hope it helps.

Sivaprasath
  • 400
  • 1
  • 7
  • 1
    Since the width of the owl carolusel container is dynamically created based on width of the items, setting an `!important` via css will create a large right padding issue due to width calculated from owl via their inline declaration opposed to your css declaration. – Zach Smith Jun 25 '20 at 16:08