The owl-carousel navigation feature is ineffective at higher screen resolutions

My current issue involves the navigation in Owl Carousel.

The problem arises when the browser window width exceeds 992px, as the navigation disappears. However, for smaller widths, the navigation works fine.

Where could the problem lie?

Here is the HTML code:

<div id="news-list" class="owl-carousel">
<article class="item news">
    <a href="#" title="Mirum est notare quam littera gothica quam nunc puta">
        <div class="photo">
            <img src="images/news/news_1.jpg" alt="">
        </div>
        <h4>Mirum est notare quam littera gothica quam nunc puta</h4>
    </a>
</article>
<article class="item news">
    <a href="#" title="Mirum est notare quam littera gothica quam nunc puta aółżnteposuerit litterarum formas">
        <div class="photo">
            <img src="images/news/news_2.jpg" alt="">
        </div>
        <h4>Mirum est notare quam littera gothica quam nunc puta aółżnteposuerit litterarum formas</h4>
    </a>
</article>
<article class="item news">
    <a href="#" title="Mółśiejsce - nagroda główna">
        <div class="photo">
            <img src="images/news/news_3.jpg" alt="">
        </div>
        <h4>Mółśiejsce - nagroda główna</h4>
    </a>
</article>

And here is the JS code:

$('#news-list').owlCarousel({
    loop: true,
    dots: false,
    margin: 40,
    navText: [
        '<img src="images/arrow_left.png" alt="Cofnij">',
        '<img src="images/arrow_right.png" alt="Dalej">'
    ],
    responsive: {
        0: {
            items: 1,
            nav: false
        },
        480: {
            items: 2,
            nav: true
        },
        992: {
            items: 3
        }
    }
});

I have also included relevant CSS styles.

Answer №1

Give this a shot:

   $('#news-list').owlCarousel({
        loop: true,
        dots: false,
        margin: 40,
        navText: [
            '<img src="images/arrow_left.png" alt="Back">',
            '<img src="images/arrow_right.png" alt="Next">'
        ],
        responsive: {
            0: {
                items: 1,
                nav: false
            },
            480: {
                items: 2,
                nav: true
            },
            992: {
                items: 3,
                nav: true
            }
        }
    });

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Warning message displayed prior to invoking the onClick function in ASP

I have a button with an onClick method like this: <asp:Button ID="Button1" runat="server" CssClass="button_short" Text="SAVE & SUBMIT" OnClick="BtnSave_Click"></asp:Button> protected void BtnSave_Click(object sender, EventArgs e) {... ...

I've encountered the error of receiving a __PHP_Incomplete_Class Object when attempting to create a session using jQuery-ajax

I have defined a new class named FinalResult class FinalResult { var $ReuestAnswer = null; var $givenAnswer = null; var $questionScore = 0; function setScore() { } function getScore() { return $this->question ...

Can you switch between displaying and concealing a dropdown in the same location based on chosen values?

I have four dropdowns listed, but I only want to display one at a time. Depending on the selected values, when I try to show a dropdown, it does not replace the current one; instead, it just appears next to the existing dropdown. Is there a way to keep th ...

Replicating headers with Ajax and CodeIgniter

Hey there, I've encountered a rather peculiar issue that's got me stumped. I'm utilizing Codeigniter and Jquery for an ajax search feature. So far, everything seems to be functioning correctly and the data is being retrieved from my model a ...

Issues with navigation functionality in Internet Explorer 8 have been identified in Twitter Bootstrap 3 RC2

I am currently using Twitter Bootstrap 3 RC2 to create a navigation bar at the top of my page, which is working perfectly fine except on IE8. In IE8, it seems like the browser is rendering the page as if it were on a smaller screen, causing the menu to co ...

Mastering the art of combining images and text harmoniously

I am having trouble aligning my lion image and h1 tag side by side. There seems to be an issue but I can't figure out what it is. h2 { width:50%; float:right; padding:30px 0px 0px 0px; margin:0 auto; } .lion { width:10%; float: left; paddin ...

Using PHP variables in JavaScript fetched through AJAX loading

I am currently attempting to retrieve a PHP variable from another page using AJAX in JavaScript, but it is not displaying any alerts. This is the PHP code for 'getposY': <?php include"connectdatabase.php"; $posYquery=mysql_query("Select posY ...

Preventing the selection of rows when collapsing tree_mode nodes in free-jqgrid

I'm currently utilizing free-jqgrid 4.15.2 for navigation purposes in a tree mode setting. The issue I am facing is that when users collapse a node, the default action is to immediately select it. My goal is to allow users to hide sections of the menu ...

Eliminate any excessive space located at the bottom of the table

How can we adjust the spacing at the bottom of the table to remove extra space? Currently, it looks like this: https://i.stack.imgur.com/DwkbG.png We want it to look like this: https://i.stack.imgur.com/extDP.png CSS .wk_mp_body td { background: ...

Is there a different value for -webkit-filter: brightness() in Safari? Any tips on how to adjust for this

It has come to my attention that Safari prefers the brightness setting for the -webkit-filter to be a percentage, while other browsers use a less straightforward scale. Take note of the difference in brightness changes between Chrome and Safari in the fol ...

Is there a way to relocate the collapse button to the bottom after it has been clicked?

I have been using Bootstrap to design a expandable card that can be expanded when clicked. I am currently using the collapse feature, but I am facing an issue where the button remains in its original position, whereas I want it to move to the bottom of the ...

List with bullet points and check marks aligned to the left and outside the text, in a vertical layout

I'm attempting to create a bulleted list with checkmarks where the text aligns on the left without the second line floating beneath the checkmarks. Does anyone have a solution for this? ...

Uploading files with JavaScript on an iPad web app

Possible Duplicate: upload files via iPad Greetings everyone! I am currently working on developing a "native" iPad application using a combination of html, javascript, and html5 cache manifest to ensure offline availability. I have successfully implem ...

How can you align text underneath another line of text in HTML by utilizing display: inline, or is there an alternative method?

I am looking to rearrange the layout of my book listings so that the price is positioned below the title rather than beneath the book images. Current Appearance: https://i.sstatic.net/xRUdM.png search.html: .resultContainer { width: 100%; position ...

Choose a different PHP value when the selection changes

I am looking to create a seamless connection between a select element and an input text field without the need to refresh the page. Here is an example of what I am trying to achieve: <select name="name_select" id="my_select"> <option value="1" ...

Unresponsive Ajax Calls in Laravel 5

I've been attempting to retrieve an Ajax response with Laravel 5, however, I'm encountering an issue. Here's the error that appears in the Chrome debugger: POST http://localhost:8000/getmsg 500 (Internal Server Error)send @ jquery.min.js:4a ...

Utilize the ajaxStart and ajaxStop jQuery methods selectively for specific requests

Utilizing the AjaxStart and AjaxStop jQuery methods allows me to display and hide a loading message when an Ajax request is sent. Here is an example code snippet: $('<div><img src="images/searching.gif" align="absmiddle" bord ...

Utilizing CSS and JavaScript for Image Masking

Is it possible to create a div that takes on the shape shown in this image and then fill it with an image? Alternatively, is there a way to transform an image into that particular shape using CSS or Javascript? Additionally, is it possible to arrange m ...

CSRF protection through cookie validation in asynchronous Ajax requests

Using the CodeIgniter framework, I have implemented a function to sort my news posts: $(".news-list").sortable({ opacity: 0.6, cursor: 'move', update: function(event, ui) { var order = $(this).sortable("serialize"); //console.log(order); ...

Is there a way to apply CSS to a PHP file within a WordPress website?

Similar Question: How To Add CSS and jQuery to a WordPress Plugin? I am trying to insert a button into a Wordpress plugin. I would like to customize the style of the button by linking a CSS file. I understand how to link a CSS file in an HTML docum ...