I’m happy to announce we’ve added a new super exciting capability allowing you to set a “Fixed Width” image fit mode.
“Fixed Width” means the image’s height will grow/shrink according to the image’s aspect ratio and width.
Elements below the image will be pushed down, similar to what we have today with Repeaters. It’s very useful for when the images are being set dynamically (using Data Binding / Corvid) because their aspect ratio is not known when building the site in the Editor.
Also, Repeaters are supported!
I have the same problem I cant seem to find a clear description. My client has hundreds of images, some portrait and some landscape. She’s an artist and wouldn’t take kindly to her images being squashed to fit.
The example in the link that Ofer posted above is very clear.
You should add more details to your question, so we’ll be able to understand what is not clear enough. Maybe post a question in the discussion forum with your current code.
I just now managed to find the right code, its been so long since I wrote code. Anyway got it working but it still seems to pick and choose sometimes where things end up being, north and south of the image everything is South but on some pages it throws one text block north of the image. Its gonna be something silly but thanks for your input. very much appreciated
Corvid documentation is super clear! thank you for this SUPER IMPORTANT feature!!! many clients have been mad due to this thing but now this made a huge difference thanks A LOT!
Any one had any success with ‘fitmode’ i have an art website with lots of different sized paintings to put up on dynamic pages - have no clear instruction from wix help team see below; as i am not a syntax expert am unable to follow these instructions - need help
thank you for contacting us!
You can not really manipulate images using Corvid (since adding or editing CSS is not supported) but if default functionality is not working - you can try using the fit mode:
It’s really very simple. Just follow the doc in the link Ofer posted above.
If it doesn’t work for you, post your code in the discussion forum and maybe we’ll be able to help.
@vijayad1540 If you want to set a mode for all your repeated picture elements simply use global selector $w(‘#id’) select one instance of your picture element which because is a global selector will affect all of your repeated element pictures and set the mode. I use it on repeaters all the time, it doesn’t need any special code…