Lightbox with transparent png

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
dannac
 
 
Posts: 206
Joined: Wed Nov 13, 2019 8:46 pm

Lightbox with transparent png

Post by dannac »

I have some round picture frames with the middle and outer edges transparent ... saved as png files.

When viewing on site page, transparency works correctly.

When clicking on image to get larger view in lightbox, the transparency is filled with color .... color depends on lightbox used.

I've tried fancybox, magnificpop, prettyphoto, and slimbox ... they all add some type of color to what should be transparent.

Tried linking to an image on my server with Image
-----correct location between the img tags but have never found a way to make this work-----

Anyone know of a lightbox that would keep the transparency ?
User avatar
crispy68
 
 
Posts: 3090
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Lightbox with transparent png

Post by crispy68 »

It may not be an issue with the transparency as it is that the lightbox adds a background to the images.

Ones that i've tested out of the box that don't add a background are: mobiletouchgallery, Glightbox (wb18) and unitegallery.

However, it may be possible to change the background of the lightbox if there is a particular one you want to use.

For example, for fancybox you could add the following code to an html box between the <head> tags:

Code: Select all

<style>
#fancybox-content{border:none !important;}
#fancybox-outer{background:transparent !important;}
</style>
This will make the background transparent and remove the white borders.
dannac
 
 
Posts: 206
Joined: Wed Nov 13, 2019 8:46 pm

Re: Lightbox with transparent png

Post by dannac »

Thank you very much ... will try that out
Post Reply