images with codes

Hi All

came discovered this code:

$w(“#Image”).

fitMode = “fixedWidth”;

However, it claims that the type container does not support fitMode. I’m using a repeater that is linked to a dataset so I don’t see a way to instruct the formula above to only highlight the repeater’s picture area. Is there any way to get all of my photographs to fit in a repeater the way I want them to without cropping?

If I understand what you mean, you are probably using the container background to display the image, where indeed this function does not work, you will have to set the container as a transparent background and add an image to the container that will be the background.