Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Gallery mode - original aspect ratio on images

More
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

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #77195 by ced1870
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

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #77196 by katarina@raskovutveckling.se
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

Please Log in or Create an account to join the conversation.

More
2 months 3 days ago #77198 by ced1870
I see
Try to add this custom css in your page
Code:
.mediaboxck img, .mediaboxck video { object-fit: contain; }
Tell me if it works

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
2 months 1 day ago #77205 by katarina@raskovutveckling.se
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.

More
2 months 1 day ago #77207 by ced1870
ok, please update the code with this one :
Code:
.mediaboxck img, .mediaboxck video { object-fit: contain; min-height: 0; }
it shall fix it. May be that I have a conflict with this effect inside Mediabox CK ...

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.252 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 479 guests and no members online