Transparent PNG slider images with fixed background

I am encountering a strange issue with one of our projects

Here on

We have an images-menu created using the Kwicks script. The problem arises when we use .png format images that are partially transparent. When these images slide over each other, the bottom image should be visible through the transparency. However, the Kwicks script seems to fill the transparent parts of the images with the background color of the page. How can this be fixed? Any suggestions?

Answer №1

To improve the layout of your bottle images, it is recommended to remove the overflow:hidden property from the parent <li> elements:

ul#accordion-slider li {
    display : block;
    /*overflow: hidden;*/
    padding : 80px 0 0 0;
    float   : left;
    width   : 60px;
    height  : 350px;
}

I tested this change using Developer Tools and observed that the bottles now overlap seamlessly without any vertical lines between them.

Update

Upon further investigation, it appears that a script on your website is automatically adding back the overflow : hidden style whenever you hover over an image. To prevent this, you can add !important to a CSS rule specifying overflow : visible:

ul#accordion-slider li {
    display  : block;
    overflow : visible;
    padding  : 80px 0 0 0;
    float    : left;
    width    : 60px;
    height   : 350px;
}

Answer №2

Why not try adding

background: transparent;

to the IMG in your popup? That should eliminate the white background.

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

What is the best way to ensure that my Material UI container occupies the entire width and height of the

Struggling to fit my content within a Material UI container in a React project, but it's creating odd margins. Check out the current look: https://i.stack.imgur.com/TaQs2.png Here's how I want it to display with full width: https://i.stack.imgur ...

Troubles with displaying table content in Internet Explorer 9 due to .innerHTML limitations

Here we go again, encountering yet another issue with using the .innerHTML property in tables on IE (version 9, to be precise). Despite searching extensively here and on Google, I have not been able to find a solution. While many others have faced similar ...

Bootstrap 4 fails to initialize

I'm feeling a bit confused. I put together an HTML, CSS, and JS file to showcase a new design concept and decided to incorporate bootstrap 4 into it. The structure of the folder is as follows: - projectFolder - index.html - css -- styles ...

Creating a webpage with a layout that features three full-length columns using

body { background-color: blueviolet; } .leftcolumn { width: 30%; height: 100%; float: left; background-color: brown; } .middlecolumn { float: left; background-color: yellowgreen; width: 60%; height: 100%; } <body> <div class= ...

The Ubiquity CmdUtils.setSelection function does not support replacing HTML code

I'm working on a Ubiquity command to replace selected links or URLs pointing to images with the actual image itself. However, I've found that the CmdUtils.setSelection() function doesn't work when there are html tags in the selection, render ...

JS Issue with triggering .click() function

I'm currently incorporating dropzone.js to enable file uploads. In my setup, I have a button with the id #btn and an input field with the id #input. The following code snippet is functional: $('#input').on('input', function() { ...

Is there a way to retrieve the ID by using the autocomplete feature to search for a user's first name and last name in PHP

Check out this code from index.php (all credit to the original owner): <HTML> <HEAD> <TITLE> Ajax php Auto Suggest </TITLE> <link href="css/style.css" rel="stylesheet" type="text/css"> <SCRIPT LANGUAGE="JavaScript ...

Is there a way to eliminate the whitespace beneath the "Brilliant" division?

[Screenshot of white space under div] [1]: https://i.sstatic.net/cO7TV.jpg I'm having trouble figuring out why there is visible white space here. As a coding beginner, I would really appreciate any assistance. I've tried searching for the soluti ...

Using jQuery to Block Remote Rails Form Submission using Live() Event Handler

Having trouble preventing a remote form submission in jQuery. I have a form that is submitted remotely: <%= form_for @order, :remote => true do |f| %> When attempting to bind to the form submit event in coffee script: $('#new_order') ...

How to access Bootstrap's modal initial data-* upon closing

When displaying a bootstrap modal, a convenient method to retrieve associated data is by using the following code snippet: $('#myModal').on('show.bs.modal', function (e) { var id = $(e.relatedTarget).data('id'); alert( ...

The div remains unchanged when the button is clicked

My webpage is filled with several large div elements. There's a button on the page that, when clicked, should switch to the next div. Despite my efforts, the code I've written doesn't seem to be working as expected. :( This is the HTML st ...

Using jQuery's ajax function to send a POST request

While following the MvcMusicStore tutorial, I decided to exercise my jQuery skills by converting a $.post() call to a $.ajax() call in order to remove an item from the shopping cart. However, I encountered a runtime error and am unsure about what went wron ...

Issues with color scheme in Angular Material 18

While using (ng generate @angular/material:my--own-theme), I came across some code in own-theme.scss. Surprisingly, this code works for the palette included in Angular Material, but I prefer to use my own theme. Here's what was generated and what I di ...

Guide to customizing the CSS styles of various components within a Material UI Dialog

Let's take a look at this snippet for creating a Material Dialog in code: <Dialog open={this.props.open} onClose={this.props.closeAtParent} PaperProps={{ style: { minHeight: '75vh', minWidth: '75vw', ...

SVG path tooltips are not functioning properly, unlike in regular HTML where they work perfectly

I have a CSS/HTML code that works perfectly in plain HTML and is also shown as an example at the end of the demo. However, it fails to work properly in SVG. Upon inspecting the element, I found that the :after code is being called but the tooltip remains ...

Tips for adjusting the time interval on an automatic slideshow when manual controls are in play

I'm having trouble with my slideshow. I want it to run automatically and also have manual controls, but there are some issues. When I try to manually control the slides, it takes me to the wrong slide and messes up the timing for the next few slides. ...

Instructions on displaying a pop-up message upon clicking the edit button with the use of javascript

How can I display a popup message box when the edit button is clicked on my PHP page? I want to confirm before passing data to the edit page, but currently, the data is being sent without displaying any message. Any suggestions on how to fix this issue w ...

What is the best way to apply fading effects to three divs containing additional divs?

Looking at this HTML and CSS code: HTML <DIV class="newsPic"></DIV> <DIV class="newsPicTwo"></DIV> <DIV class="newsPicThree"></DIV> CSS .newsPic { width: 500px; height: 200px; } .newsPicTwo { width: 500px; height: 2 ...

Tips for avoiding JavaScript Client-Side DOM Code Injection Vulnerabilities

Line xxx in the addAnnouncements.js file contains a method function that retrieves data from the client-side for a json element. This data is then used in client-side code without proper sanitization or validation, and is ultimately incorporated into the H ...

What is the best way to extract menu and submenu information from an array?

I'm in the process of building a webpage with the help of smart admin and I'm facing an issue with displaying left menu data properly. The data is being retrieved from an array and I need to arrange the menus and submenus based on the parent ID o ...