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

Creating a table using Jade/Express.js that displays various elements in each row

Looking to create a dynamic table layout using Jade for an array of objects where three objects are displayed on each row. <table> <thead>...</thead> <tbody> <tr> <td>obj0</td> <td>obj1 ...

Passing a parameter from AJAX to PHP

const studentNumber = $('#studno').val(); $(document).ready(function () { $('.go').click(function () { $('.inup').load('prochat.php', { studno: studentNumber }); }); }); I've ...

Obtain the option tag's name

One of my challenges is working with a dynamically created dropdown in HTML and having a dictionary in the back-end to retrieve keys. As users keep adding options to the dropdown, I face the issue of not having a value attribute like this: <option valu ...

Navigational menu that slides or follows as you scroll

Wondering if anyone knows of a straightforward jQuery or Javascript method to create a navigation sidebar that smoothly moves with the user as they scroll down a page. A good example can be found here: Any suggestions would be greatly welcome. ...

Posting Form Data with Ajax in CodeIgniter

Incorporating the CodeIgniter framework along with the jQuery Form plugin available at http://malsup.com/jquery/form/ Encountering challenges in ensuring proper functionality of a form. View <div class="row"> <div class="well c ...

The jQuery Animate feature springs to life with just a single click

I'm attempting to integrate jQuery's animate feature with a bookmark ID on my website. When I first click on the link, it jumps to the bookmark ID without any animation, but if I click the same link again, the animation works as expected. var Ti ...

Issue with Jquery's .html() function not functioning properly when trying to select HTML

I am currently working on a piece of code that looks like this: $price = $(element) > $('.main_paket_price').attr('name'); alert($price); Basically, I am trying to select an element inside element which has the class main_paket_pri ...

Unable to set CSS image as background

Currently, I am in the process of developing a website using HTML 5, CSS, and JavaScript. However, I am encountering an issue with image manipulation on the site. I am attempting to make the image the background but every method I try seems to be lacking a ...

Codeigniter session unexpectedly ends after AJAX call completes successfully

Currently, I am utilizing the CodeIgniter framework on a Heroku server with an AWS database. In my AJAX success function, I have a window.location.reload(); call which ends up destroying the session and redirecting to the login page. Is there a way to prev ...

Store the output of JavaScript in a PHP variable

My objective is to convert any image to base 64 and then store the converted string in a PHP variable before inserting it into my database. JavaScript Code: function uploadFile() { if (this.files && this.files[0]) { var FR= new FileReader ...

Automatically conceal a div or flash message after a short period of time by utilizing CSS3 in a React

I am relatively new to the React environment and recently created a basic component for a bookmarking feature. Essentially, when the favourite icon is clicked, an ajax call is sent > a record is created in the database > on ajax success, a flash me ...

Incorporating A Full-Fledged Office Word Editor Into My Web Application

In our web project, we are looking to integrate a feature that allows users to create, edit, and save their word documents for reporting purposes. While Microsoft Office offers an online option here, it seems limited to working within the Microsoft OneDriv ...

Issues with Rails not successfully sending AJAX data to the controller

I am new to AJAX, so please bear with me while I try to figure this out. My goal is to send data from a chat message box to two places – the chat box itself and to a method in my Rails backend. This way, I can display the message in real-time and also st ...

Understanding the jQuery comparison operator is crucial in effectively utilizing

Part of the code seems to be functioning properly: ($(".call_1") || $("#call_1")).click(function(evt) { evt.preventDefault(); $("#championSlideshow, #pourSlideshow, #skimSlideshow").fadeOut(0,function() { $("#prepar ...

Utilize $.get AJAX to extract data from a multidimensional JSON array

Struggling to make two functions work on my form that uses AJAX and jQuery to look up an array. One function is functional while the other seems to be causing confusion with over-analysis and extensive troubleshooting. Any insights into what may be missing ...

Using Selenium to Implement Accept Policy Targeting

I am attempting to locate and click on a button from dekudeals using selenium. Specifically, I am trying to target the accept button within the site's policy window. The button that needs to be clicked can be found here. I have made several attempt ...

Struggling to insert a JavaScript variable into a MySQL database table using PHP and AJAX

As a newcomer to these technologies, I've been struggling all day with what I expected to be a simple task. My goal is to pass a parameter from a JS function to my PHP code using AJAX and then insert that parameter into my database. Here's the J ...

Chrome causing a background-size cover issue

I encountered an issue with this code. It runs smoothly on Firefox 50, but encounters failures on Chrome Version 54.0.2840.99 m (64-bit) on Windows. .test { background: url(datas/images/3.jpg) no-repeat center center fixed; background-size: cover ...

Enhance Your Thumbnails with Jquery by Adding Image Titles

Having an issue with extracting the title tag from images in a slider and relocating it to another part of my webpage. Currently, only the first image's title is being retrieved, while subsequent ones are not. Here is the script I am using: var imgT ...

CSS file not loading in an ExpressJS application

I'm facing an issue with my ExpressJS web app where only the HTML files are loading but the CSS rules are not being applied. I have linked the HTML file with the CSS file and also included express.static(path.join(__dirname, 'css')) in my ap ...