I have a page filled with thumbnails, resized with css to 150x150
, and when I click on a thumbnail, the page dims, and The image is being shown in it's true sizes.
Currently, I have to manually create an array that includes the actual height of all images. For solving a design issue+less manual operation of my gallery, I need to get the actual height of an image, after I resized it (CSS).
I tried:
var imageheight = document.getElementById(imageid).height;
And:
var imageheight = $('#' + imageid).height();
But both return the 150px
attribute assigned with the CSS. How can I solve this? Thanks