Kunena Menu
Gallery mode - original aspect ratio on images
- katarina@raskovutveckling.se
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
2 months 3 days ago #77193
by katarina@raskovutveckling.se
Hi!
I want to use Mediabox to show images in gallery mode and I have made my own style based on the Under effect in the Image Effect. The images from the selected folder shows up as wanted, but how do I show the original aspect ratio of the images? The url is: galleribv.se/hardy-strid-50-tal
/Katarina
I want to use Mediabox to show images in gallery mode and I have made my own style based on the Under effect in the Image Effect. The images from the selected folder shows up as wanted, but how do I show the original aspect ratio of the images? The url is: galleribv.se/hardy-strid-50-tal
/Katarina
Please Log in or Create an account to join the conversation.
2 months 3 days ago #77195
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Gallery mode - original aspect ratio on images
Hi
Please go in the plugin Mediabox CK options >> Gallery tab >> Gallery display >> set it on "flexible width"
Then check how it displays, it should be better.
Note that if you have multiple image ratios, you will not be able to show the images correctly without truncating, but it will be better using the flexible display
CEd
Please go in the plugin Mediabox CK options >> Gallery tab >> Gallery display >> set it on "flexible width"
Then check how it displays, it should be better.
Note that if you have multiple image ratios, you will not be able to show the images correctly without truncating, but it will be better using the flexible display
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- katarina@raskovutveckling.se
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
2 months 3 days ago #77196
by katarina@raskovutveckling.se
Replied by katarina@raskovutveckling.se on topic Gallery mode - original aspect ratio on images
I have rebuilt the site from scratch with Joomla 6. On the old site it worked just fine with Mediabox and Image Effect. (See attached.) How can I recreate this?
/K
/K
Please Log in or Create an account to join the conversation.
2 months 3 days ago #77198
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Gallery mode - original aspect ratio on images
I see
Try to add this custom css in your page
Tell me if it works
Try to add this custom css in your page
Code:
.mediaboxck img, .mediaboxck video {
object-fit: contain;
}
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
- katarina@raskovutveckling.se
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
2 months 1 day ago #77205
by katarina@raskovutveckling.se
Replied by katarina@raskovutveckling.se on topic Gallery mode - original aspect ratio on images
Almost perfect thanks! Images are good but I still don't see the title and caption under the image.
Please Log in or Create an account to join the conversation.
2 months 1 day ago #77207
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Gallery mode - original aspect ratio on images
ok, please update the code with this one :
it shall fix it. May be that I have a conflict with this effect inside Mediabox CK ...
Code:
.mediaboxck img, .mediaboxck video {
object-fit: contain;
min-height: 0;
}
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.252 seconds





