I have three responsive elements (imgs), but every time an owl carousel is loaded, the owl wrapper is twice as wide as all the images. For example; if full-size images occupy 1583 px, owl-wrapper takes 1583 * 3 * 2 = 9498px, and the entire site occupies this width, instead the full size (1583 px).
Problem: http://nacionalempreendimen.web2144.uni5.net
HTML
<div id="promoted-carousel"> <div class="item"><img src="assets/img/tmp/1.jpg"></div> <div class="item"><img src="assets/img/tmp/2.jpg"></div> <div class="item"><img src="assets/img/tmp/3.jpg"></div> </div>
CSS
#promoted-carousel .item img{ display: block; width: 100%; height: auto; }
Js
$('#promoted-carousel').owlCarousel({ autoPlay: 5000, stopOnHover: true, singleItem: true });
UPDATE
I saw that when I put the #promoted-carousel div from the .page-wrapper div, it works correctly. But my css knowledge is not enough to understand why it works.
javascript jquery html css owl-carousel
Vinicius ottoni
source share