The MAC slideshow circles at the bottom have been mysteriously chopped off

Utilizing the popular JQuery plugin Cycle for a slideshow on this site: bybyweb.com/pbm

An issue has arisen - everything functions as expected on windows (across all major browsers), BUT on MAC (running lion 10.7.5, tested on one machine so far; unsure of client's OS version on second test machine...) there is an issue...

The problem at hand: the navigation circles are being cut off at the bottom. (you will see it in the slideshow). Confirmed across Firefox, Safari and Chrome!

Relevant css:

#slider_nav {
    position:absolute;
    width:200px;
    height:27px;
    z-index:999;
    left:392px;
    top:455px;
    margin:0;
    padding:0;
}

.slideli{
    width:24px;
    height:27px;
    padding:0 24px 0 0;
    background-image:url(../images/gray-dot.png);
    background-repeat:no-repeat;
    cursor:pointer;
    background-position:top;
    margin:0;
}

.activeSlide {      
    width:24px;
    height:27px;
    text-decoration:none; 
    padding:0 24px 0 0;
    background-image:url(../images/white-dot.png);
    background-repeat:no-repeat;
    background-position:top;
    cursor:pointer;
    margin:0;
}

I've adjusted the height to be larger than necessary, removed margins, paddings... but to no avail - it's clear that something else is causing the issue here, any tips or advice would be greatly appreciated.

Answer №1

Your JavaScript code contains the following line:

return '<li'+s+' class="slideli"><a href="#">&nbsp;</a></li>';

When executed, it generates these lines:

<li0 class="slideli">
<li1 class="slideli">
<li2 class="slideli">
<li3 class="slideli">
<li4 class="slideli">

This approach is not recommended.


I made some modifications to the CSS for slideli. They are intended to resolve the issue:

.slideli {
    background-image: url("../images/gray-dot.png");
    background-position: center top;
    background-repeat: no-repeat;
    cursor: pointer;
    display: inline-block;          // Added
    height: 27px;
    margin-right: 5px;              // Added
    padding: 0;                     // Modified
    width: 24px;
}

Please implement these changes and let us know if the problem has been fixed.

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

How can the Jquery UI Datepicker value be automatically set upon redirecting to this page?

When I submit a form and an error occurs, the value selected in the datepicker is not retained. The datepicker field remains empty. How is this possible? <html> <head> <script type="text/javascript" >. $(function() { ...

Tips for maintaining the original height of an image within an <img> element using HTML and CSS

I am facing an issue with a grid where I add grid-items, and then use the thumbnail class to provide dimensions to the thumbnail. When I insert an image into the <img> tag, it alters the height dimension, which is not desirable. I want the thumbnail ...

Remember a MySQL query using JavaScript

For quite some time, I've been on a quest to unveil the solution to this issue that seems relatively straightforward, yet continues to elude me. The crux of the matter is my desire to "recall" a functional mysql query. With an HTML button and a span ...

PHP behaving unexpectedly when combined with AJAX using Jquery

So, I have encountered a rather peculiar issue. I am using an AJAX Request to retrieve just a number. This number is fetched from: getMoney.php. On index.php, the AJAX request is implemented. Here is the Ajax Code: function getMoney(selected) { if( ...

methods for transforming JSON array output objects into individual non-array values

I'm facing an issue with a JSON result that contains latitude and longitude as an array like [13.0801721, 80.2838331]. I need help in converting this to comma-separated values without the array brackets, similar to 13.0801721, 80.2838331. This is my ...

Cherrypy/Chrome: Issue with jquery ajax request remaining pending after several successful requests

My current project involves a Cherrypy server that receives a JSON array from a client via AJAX call. The server then manipulates the array and sends it back to the client. However, I've noticed an issue where after a few smooth requests, the next req ...

Tips for troubleshooting my website?

After making some updates to my website, I noticed that an ajax script is no longer functioning properly. Since I hired someone else to write the code, I'm not sure how to troubleshoot it. Initially, this is what it should look like: When you select ...

A guide on utilizing bootstrap tooltip feature to display information when hovering over an image

I have a jQuery function that dynamically creates an image and li element on the page. My goal is to implement a bootstrap tooltip so that when the mouse hovers over the image, additional details about it will be displayed in a separate tooltip similar t ...

Choose a single dynamic image from a collection of multiple images

In the process of developing a Shopping cart website, I encountered an issue regarding allowing users to upload multiple images of a single product. Using jQuery, I successfully cloned the file input section to enable uploading additional images of the sam ...

What is the process for combining two elements using tailwind?

I am trying to stack two elements on top of each other using tailwind CSS. Here is what I have attempted: <div class = "w-10 h-10" id="container"> <button class = "relative w-4 h-4 bg-red"> Started </button> ...

Moving a row from one Jquery Datatable to another table

I'd like to merge the rows from table 2 into table 1. If I check a row in the checkbox column and click on "add user," that row will be added to table 1. Next to the "add user" button, there is an option to select all or none. If I click on "select ...

I am encountering difficulties in accessing my component's property within the corresponding template while working with Angular 5

When I call an HTTP POST method to retrieve table names from the backend, I attempt to display them in the template using ngFor. However, the table names are not appearing on the screen. The tNames property is inaccessible in the template. As a beginner i ...

Resizing the elements within an iframe: Troubleshooting problems with embedding Bandcamp players

My goal is to embed a Bandcamp music player on my WordPress blog page, but I'm facing a challenge. The maximum width of the current player is 700px and I need it to be 900px. After consulting with someone at Bandcamp, they directed me to the old versi ...

What are some ways to change the appearance of a component using its parent?

In order to make changes to the CSS properties of a Vue component from its parent, effectively overriding any existing styles within the component, I am seeking a solution. Initially, I assumed that styling a component like <my-component> directly f ...

Using an HTML element to pass a variable into a replace function

I am looking to highlight a 'SearchString' by replacing it with <span style="background-color: yellow">SearchString</span> within a targetString. The SearchString varies, so I am wondering how I can make this happen. This is what I ...

Provide solely the specified content range

While working with Node.js, my goal is to develop a video server that can serve a specific portion of a larger media file. Thanks to this gist, I have successfully created a video server and integrated it with an HTML5 video player using: <video contr ...

Ways to show dropdown menu link exclusively on mobile browsers and not on desktop browsers

<li class="megamenu-content"> <div class="megamenu-content-wrapper clearfix"> <ul class="col-lg-3 col-sm-3 col-md-3 "> <li class="cat-header">DISPLAY MEMBERS</li> ...

How to style multiple tags using CSS

Is there a way to style specific tags in CSS? <style type="text/css"> [attribute*="test"] { background-color: red; } </style> However, this method does not seem to work for the following tags: <test-1> </test-1> <t ...

Using a jQuery function within an Angular application requires a careful integration process to ensure

I developed a small program in Angular that includes a method for searching a string in an array of strings like this: function searchStringInArray(str, strArray) { for (var j = 0; j < strArray.length; j++) { if (strArray[j].match(str)) return j; ...

Ways to insert additional panels prior to and after a selected panel

A button is provided in the report designer detail band that, when clicked, should add new panels immediately before and after the detail panel. $parentpanel = $this.parents(".designer-panel:first"); This code snippet is used to locate the parent panel u ...