Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
m |
|||
Line 248: | Line 248: | ||
if( garPic.height/garPic.width > adHeight/adWidth) {garPic.style.height = adHeight + 'px'; | if( garPic.height/garPic.width > adHeight/adWidth) {garPic.style.height = adHeight + 'px'; | ||
garPic.style.width = adHeight/ratio + 'px';} | garPic.style.width = adHeight/ratio + 'px';} | ||
- | + | else {garPic.style.width = adWidth + 'px'; | |
+ | garPic.style.height = 'auto';} | ||
showbox.style.width = garPic.style.width; | showbox.style.width = garPic.style.width; | ||
prefoto.style.top = (garPic.height - prefoto.height)/2 + 'px'; | prefoto.style.top = (garPic.height - prefoto.height)/2 + 'px'; |
Revision as of 14:56, 12 September 2013