I want to have a page with a photo collage of 30+ files. No issue, except that the photos seem to be resized to fit the boxes rather than the other way round. So, the aspect ratios make the photos look too wide or too tall.
A demo file can be found here https://www.dropbox.com/s/n3t733lgm6tin ... e.zip?dl=1. So what have I done wrong?
Alan
Photo collage issue with aspect ratio.
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: Photo collage issue with aspect ratio.
All of the images in the collage are squares thus the image is being squashed to fit. There is nothing in the extension to change this behavior.
However, CSS crispy68 to the rescue!
Enter the following between the <head> tags:
Make sure to change "PhotoCollage1" to match the name of your ID.
However, CSS crispy68 to the rescue!

Enter the following between the <head> tags:
Code: Select all
<style>
#PhotoCollage1 .thumbnail img{object-fit:cover;}
</style>
Re: Photo collage issue with aspect ratio.
Thank you. I will try that.
Alan
Alan
Re: Photo collage issue with aspect ratio.
That works just fine. My only issue now is that if I fit it into a layout grid, it goes to full width. There doesn't seem to be any way to set full width=false.
I've fixed it for now by putting in 3 cells in my layout grid and putting the collage in the middle one.
Alan
I've fixed it for now by putting in 3 cells in my layout grid and putting the collage in the middle one.
Alan
Re: Photo collage issue with aspect ratio.
This is correct and intended behavior so it can be flexible. Why didn't you just add a max-width to the grid?it goes to full width.
Re: Photo collage issue with aspect ratio.
Because I didn't think of it (doh!!). Having said that, I actually like it the way I've done it.
Cheers
Alan
Cheers
Alan