Team:Goettingen/Team/Gallery
From 2013.igem.org
(Difference between revisions)
m |
m |
||
Line 103: | Line 103: | ||
function showGarPic(from,illustration){ | function showGarPic(from,illustration){ | ||
garPic.src = from; | garPic.src = from; | ||
- | showbox.style | + | with(showbox.style){ |
+ | width = getComputedStyle(garPic,null).width; | ||
+ | marginLeft = 'auto'; | ||
+ | marginRight = 'auto'; | ||
+ | } | ||
document.body.insertBefore(lightframe,document.body.childNodes[0]); | document.body.insertBefore(lightframe,document.body.childNodes[0]); | ||
description.innerHTML = illustration; | description.innerHTML = illustration; |
Revision as of 17:38, 8 July 2013