Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How come dots/navigation buttons are not visiable using owlcarousel?

How come the navigation buttons are not visible?

I'm using jQuery and owlcarousel (http://owlgraphic.com/owlcarousel/).

http://jsfiddle.net/bobbyrne01/s10bgckL/1/

screenshot

html ..

<div id="owl-demo">
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
    <div class="item">
        <img src="http://placehold.it/50x50" alt="Owl Image" />
    </div>
</div>

js ..

$(document).ready(function () {
    $("#owl-demo").owlCarousel({

        autoPlay: 3000, //Set AutoPlay to 3 seconds
        dots: true,
        items: 2,
        itemsDesktop: [1199, 3],
        itemsDesktopSmall: [979, 3]
    });
});

css ..

#owl-demo .item {
    margin: 3px;
}
#owl-demo .item img {
    display: block;
    width: 50%;
    height: auto;
}
like image 585
bobbyrne01 Avatar asked Dec 10 '14 16:12

bobbyrne01


3 Answers

Add CSS for Owl Carousel theme,

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.3/owl.theme.min.css" />

and change,

<div id="owl-demo">

to

<div id="owl-demo" class="owl-theme">

Demo: jsfiddle link

like image 175
Andy Moore Avatar answered Oct 12 '22 08:10

Andy Moore


pagination:false,
navigation:true

try this

like image 35
Chamandeep Avatar answered Oct 12 '22 08:10

Chamandeep


The minified css file you have doesn't appear to have a style for that element: .owl-theme .owl-controls .owl-page span.

Here are the styles that are applied by the demo on the owlgraphic.com site: http://jsfiddle.net/s10bgckL/2/

like image 21
im1dermike Avatar answered Oct 12 '22 06:10

im1dermike