Lightbox-Bilder größer als Original
-
Re: Lightbox
Hallo, wie schaut es mit der Weiterentwicklung der Lighbox bezüglich der o.g. Funktion aus? Oder welche andere Möglichkeit gibt es, dass kleine Bilder in der Lightbox nicht vergrößert dargestellt werden?
VG
-
-
Hello Marius,
I am trying to do this with giving an image a class and write a custom css like:
.newclass .lightbox-image-holder img {
height: initial !important;
width: initial !important;
}Well, it does not work. ^^
Any ideas to solve this by writing custom css?
Best.
-
Dear @Layer
try to add this to your CUSTOM CSS code:
#lightbox-inner .lazyloaded { width: initial !important; height: initial !important; }
Best!
Marius
-
Hello Marius,
this works. But unfortunately the function "Lightbox Addon > Space Around Image" does not work anymore. The height of big pictures is then the browser hight. If you have an idea to combine that let me know.
Best.
-
Dear @Layer
you could try to use max-height and max-width.Hope that gets you in the right direction.
Best!
Marius
-
Hello Marius,
nope, does not work.
Best.
-
Dear @Layer
have a look here:#lightbox-inner .lazyloaded { width: initial !important; height: initial !important; max-height: 100vh; max-width: 100vw; }
Best!
Marius
Before you post
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it