Lightbox Effect to Images
2 posters
Page 1 of 1
Lightbox Effect to Images
i followed this guide
to make this effect at images in my forum but i want something else. with this effect when u press an image it goes in this lightbox, i just want to do it ONLY at images with a spesific size and more for example to images which have height 150px, width 150px and more. is that possible? thanks
Re: Lightbox Effect to Images
Hello,
Well I'm not sure, in this part of the code(CSS), try adding the width and height element:
or setting maximum image size:
Just give it a try.
Well I'm not sure, in this part of the code(CSS), try adding the width and height element:
- Code:
a.fa_fancybox img{
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
width: 150px;
height: 150px;
}
or setting maximum image size:
- Code:
a.fa_fancybox img {
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
max-width: 150px;
max-height: 150px;
}
Just give it a try.
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Re: Lightbox Effect to Images
well, i tried the first code, and all the images had this size (150px)
i tried the second, and when i press the images to zoom, they all have max size 150px
i tried the second, and when i press the images to zoom, they all have max size 150px
Re: Lightbox Effect to Images
Ok is that what you want?
Try this if not:
Don't know if that will work though
Try this if not:
- Code:
a.fa_fancybox img {
cursor: pointer;
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
min-width: 150px;
min-height: 150px;
max-width: 150px;
max-height: 150px;
}
Don't know if that will work though
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Re: Lightbox Effect to Images
hmm, nothing
again the same with before.
what i want is, this code to show in the lightbox only images with height and width 150px and more. if an image is smaller then, it wont zoom and display the lightbox effect. i hope u understand now because my english is bad..
again the same with before.
what i want is, this code to show in the lightbox only images with height and width 150px and more. if an image is smaller then, it wont zoom and display the lightbox effect. i hope u understand now because my english is bad..
Re: Lightbox Effect to Images
Ok, I think this one would require Javascript/Jquery, let's wait for someone who has a solution for this.if an image is smaller then, it wont zoom and display the lightbox effect
EDIT:
But for the first code I provided, did it re-size the images?
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» Lightbox for too large images
» Fade-IN Effect of images
» blurry effect for images?
» Lightbox effect on pictures
» LightBox Effect Not WOrking?
» Fade-IN Effect of images
» blurry effect for images?
» Lightbox effect on pictures
» LightBox Effect Not WOrking?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum