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

single image equal dimension

More
6 years 6 months ago #56291 by Kleszewski
hi
Elements -> Row -> Single image :
Is there any way for a single image so that the photos added here have the same dimension in each position of the added single photo. I mainly mean the height of the photo
If at the beginning their dimensions are different.

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

More
6 years 6 months ago #56304 by ced1870
Hi
you can do that using custom css like this
- add a css class on the row : equalimage

- add the custom css in the page
Code:
.equalimage .innercontent, .equalimage .cktype, .equalimage .imageck, .equalimage .imageck img { height: 100%; } .equalimage .imageck img { object-fit: cover; }
CEd

Joomlack Webmaster and Developer
The following user(s) said Thank You: Kleszewski

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

More
6 years 6 months ago - 6 years 6 months ago #56305 by Kleszewski
HTML / CSS button
class: equalimage


Template creator-> parameters -> custom css ->
Code:
/*single image resize*/ .equalimage .innercontent, .equalimage .cktype, .equalimage .imageck, .equalimage .imageck img { height: 100%; } .equalimage .imageck img { object-fit: cover; }
It's almost good :)
This message contains confidential information
Last edit: 6 years 6 months ago by Kleszewski.

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

More
6 years 6 months ago #56310 by ced1870
just checked your url and the images have the same height :)

Joomlack Webmaster and Developer

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

More
6 years 6 months ago #56311 by Kleszewski
almost equal ;)
Check once again
I have duplicated this element with the css class: .equalimage
Row container dupicate -> css.equalimage ->
I added photos of various sizes, without prior preparation, it came out what you see.

I know that the best solution is to prepare photos of equal dimensions, but I thought that since there is a mechanism in the gallery that scales the photos (crop image), maybe the same technique can be used here

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

More
6 years 6 months ago #56312 by ced1870
thanks, I see now :)
please try to add the width 100% like this
Code:
.equalimage .imageck img { object-fit: cover; width: 100%; }

Joomlack Webmaster and Developer

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

Time to create page: 0.195 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1181 guests and one member online