I am using owl carousel 2, I am facing following problem.
I have parent div
with a name owl-stage-outer
, it has overflow:hidden
as per requirement of the carousel.
I have another child div
name: ribbon
(showing 'New Arrival' and 'Big Sale') which is position: absolute
Now the problem which I am facing, on first item of carousel, ribbon is hiding because of overflow: hidden
I have tried solution provided in this link, but it will only work on immediate child.
Thanks in Advance.
Try this solution
Here's a fix (kind of dirty but it works) that you can try :
First you remove
overflow: hidden
of.owl-carousel .owl-stage-outer
. It will show all your slider on 100% of the width of the page, yes.But then you set
position: relative;
to.owl-carousel .owl-stage-outer
instead ofposition: static;
.Then you add a
:before
on it like this to hide the left part :Of course you have to do the same with
:after
to hide the right content.You can add this
margin-left: 25px;
its works.EDIT :
Its works
add this of you
container
:of your
owl-stage-outer
: