Display issue with flex slider thumbnail view

I am experiencing an issue with my flex slider. Everything works fine when I have 4 images, but as soon as there are more than 5 images, the thumbs view is displayed incorrectly. Does anyone know a solution to fix this problem? Here is a Screenshot for reference.

Answer №1

Check out my code snippet below:

<div class="flexslider">
  <ul class="slides">
    <?php
      $pre_ads_images=$conn->query("SELECT * FROM files WHERE pid=".$ad_out['id']);
      while($ad_images=$pre_ads_images->fetch_assoc()){
        echo'
          <li data-thumb="'.$base_dir.'/uploads/post/'.$ad_images['uid'].'/'.$ad_images['name'].'">
            <img src="'.$base_dir.'/uploads/post/'.$ad_images['uid'].'/'.$ad_images['name'].'" alt="'.$ad_out['title'].' For Sale In '.$city_y['name'].'"/>
          </li>';
        }
   ?>
  </ul>
</div>
<script>$('.flexslider').flexslider({animation: "slide",controlNav: "thumbnails"});</script>

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

Issues with boxes showing or concealing depending on the chosen option

I am encountering an issue with a dynamic dropdown feature. The secondary box is supposed to appear based on the selection of the first box. However, as soon as I select an option in the second box, it disappears immediately. I suspect the problem lies wit ...

Identifying the server control ID on the master page with the help of jQuery

My Asp.net Master Page includes an adrotator element. <asp:AdRotator ID="adr" AdvertisementFile="~/Adrotator.xml" Width="180px" Height="200px" runat="server" Target="_self" /> I have implemented a jquery script to rotate the ADS, b ...

element obscured by overlapping elements

I'm unsure why this issue is occurring; it seems to be a CSS error, but I can't pinpoint the exact location. Working on this in Rails, so I'm relatively new to it, but it should follow standard CSS practices! https://i.sstatic.net/OtO6O.jp ...

Styling with CSS: Utilizing the Float Left Property to Anchor Elements

Currently, I have implemented an anchor element that utilizes a CSS class to replace the text with an image. Despite its unusual nature, the end result is mostly satisfactory. .toolLink a { overflow:hidden; } .toolEdit { float:left; ba ...

Issues with the use of overflow:hidden

I need to create 5 divs aligned horizontally next to each other, spanning the width and height of the window. Each div should occupy 20% of the window width, and any overflow content should be hidden. Below is the CSS code for two of the divs: #container1 ...

Utilizing AJAX and jQuery to Cast Your Vote in a Poll

I have recently set up a basic poll using AJAX JSON jQuery to interact with the server side, but it seems to be malfunctioning. I would appreciate any guidance on where I may have made a mistake. I am still learning jQuery and JSON. JavaScript <script ...

What is the best way to add border-radius to an image while incorporating padding?

I am facing an issue with images that have white padding at the top and bottom. Please refer to the attached image. Whenever I try to apply the border-radius property to these images, the edges appear distorted. Is there a way to resolve this problem wit ...

Is there a way to update the parent value when the child is activated?

I need to create a dropdown menu for users to select their email provider - either gmail, hotmail, or outlook. Once they make a selection, I want the button text to update accordingly. The catch is that I can only use bootstrap for this project and cannot ...

Exploring the process of updating the NavigateURL of a HyperLink when clicked

Everyone is familiar with the fact that HyperLinks have a navigateURL property which redirects you to the linked destination when clicked, which works well. In certain visual cases, LinkButtons are similar to Hyperlinks but do not have a navigateURL prope ...

ACF issue: Ajax POST data not displaying correctly

Are you struggling with an AJAX function designed to expand custom post types with a "Show More" button click on your page? The function is successfully populating the page but seems to be returning empty values or elements. I am utilizing ACF and attempti ...

Is there a way to make a DIV's span equal in height to its inner H3

I am working with a layout that looks like this ... <div style="width: 99%; border: 1px dotted #0683DA; padding: 8px;"> <h3>Some Header</h3> <div class="d-dataGridBodyRow" style="padding: 0px"> <table style="vert ...

Invoke a node.js function from within an HTML document

Seems like a recurring question. The closest solution I found was on this page: execute a Nodejs script from an html page? However, I'm still having trouble grasping it. Here's the scenario: I have an express server set up with the following ...

Add the attribute's value to an array

$(document).ready(function() { function randomColor() { return 'rgb(' + Math.round(Math.random() * 255) + ', ' + Math.round(Math.random() * 255) + ', ' + Math.round(Math.random() * 255) + ')' ...

How can I update a date value received from a v-model in Vue.js when the input type is set to "date"?

My issue lies in the date format coming as "9999-99-99 00:00:00", while I want it to be just "9999-99-99". The dates are stored in an array with multiple fields. How can I update the value using Vue.js? new Vue({ el: '#app', data: () => ...

Updates made to CSS are not reflecting on the error 404 page

Unable to Apply CSS Changes to 404 Error Page EDIT: page in question: Right from the start: I have ruled out any relative path issues. I have specified a base href in my header like this: <base href="https://hinnahackers.no/"> I am aware that thi ...

What is the process for changing text to red when hovering over it in a nested list?

a { color:black; } a:hover { color:red; } <ol> <a href="#"><li>Main1</li></a> <a href="#"><li>Main2</li> <a href="#"><li>Main3 <ol> ...

Enhancing Your Website with Multiple Background Images in CSS3

Having trouble understanding how to position multiple background images with CSS3. I'm struggling to get them to display at the top, middle, and bottom of the page. Can you help me figure out how to make an image appear at different positions using a ...

Exploring the concept of JSONP using a practical demonstration with the Flickr API

Trying to understand how to make a JSON request to a JSON file stored on the server from JSFiddle. Your HTML: <!DOCTYPE html> <html> <head> </head> <body> <div id="images"> ...

Achieving a full-screen div or video that remains fixed in a specific position on the browser window can be done by following these steps

I am seeking guidance on how to create a video or div that remains fixed in a specific position while adjusting its size to always match the browser window. You can see an example of what I am aiming for here. The website mentioned above contains a video ...

Creating a live notification in the chat that displays "User is typing" to all participants

I am working on developing a chat application using jQuery and PHP. I am looking for guidance on how to implement a feature where a user, let's say "Evx," types a message in real-time and it is instantly displayed to all other users. This functionalit ...