Barbara Posted December 23, 2008 Report Share Posted December 23, 2008 I am not sure why the images displayed stretched in the result and detail page in my form ! How can I fix this? Thanks, Barbara Quote Link to comment Share on other sites More sharing options...
0 bahar_vm Posted December 23, 2008 Report Share Posted December 23, 2008 The reason is that you have set both width and Height in the DataPage wizard where configuring the fields. The solution is to set only one of them either Width or Height, this way the other one sets relatively. Best Bahar M. Quote Link to comment Share on other sites More sharing options...
0 futurist Posted May 3, 2022 Report Share Posted May 3, 2022 Hi @Barbara, you can actually set a width and height for the image and still have them come out without being stretched or distorted. You would have to use a bit of CSS for this. 1. On your Report DataPage, select your image field and set the desired width and height. 2. Add a Header and Footer and on the Header, disable the HTML editor and paste the following CSS: <style> img { object-fit: cover; } </style> 3. Save changes. Here's a sample DataPage where I set the images to square: https://c1hch576.caspio.com/dp/db26a00029fdf80e16c542e5bcdf Quote Link to comment Share on other sites More sharing options...
Question
Barbara
I am not sure why the images displayed stretched in the result and detail page in my form ! How can I fix this?
Thanks,
Barbara
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.