I have X amount of divs, all set to a specific height and width. Within these is an image, all vary in size. I want to find the height of the image, divide it by 2 and set that as the margin top value so all images are in the centre if this makes sense? Ive tried making a fiddle only im unsure how to go about it…
Share
You could do something like this
Fiddle here http://jsfiddle.net/R8QUL/6/