user3244544
user3244544

Reputation: 109

preventing image resize when displayed on page

so i have this image with a specific size and when i display the image it increases in size. How can i prevent image resizing when displaying it.?

This is my line for displaying the image

 <img class="imagedisplay" data-bind="attr: { src: ThumbnailUrl, alt: Title }" src="" />

Is there a way in which i could control it to display exactly as its original size without alterations via css or javascript? I am not sure what my options are to do this.

Any suggestions would be great.

Upvotes: 1

Views: 63

Answers (1)

Kelderic
Kelderic

Reputation: 6717

The image doesn't change size on it's own. If nothing affects it, it will display at it's native height and width. If it's changing, then either it's width has been set via CSS to a % of it's parent, or it's being affected by Javascript. To make it stay the same, you need to turn off whatever is changing it. If you post your full code, we can help more specifically.

Upvotes: 1

Related Questions