Difference between revisions of "Team:Tuebingen/Art and Design"

Line 52: Line 52:
 
var div = document.createElement('div');
 
var div = document.createElement('div');
 
var img = document.createElement('div');
 
var img = document.createElement('div');
img.style.cssText = 'background-size:contain;height:150px;background-repeat:no-repeat;';
+
img.style.cssText = 'background-size:contain;height:150px;background-repeat:no-repeat;background-position:center;';
div.style.cssText = 'height:150px;display:inline;width:100px;display:none;perspective:400px;position:absolute;top:0px;left:50%;text-align:center;';
+
div.style.cssText = 'height:150px;display:inline;width:100px;display:none;perspective:400px;position:absolute;top:0px;left:50%;';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
img.style.backgroundImage = 'url('+imgURLs[i]+')';
 
div.appendChild(img);
 
div.appendChild(img);

Revision as of 15:02, 18 September 2015

<
>


Supercellfie Ironcell Culk Thor Cellson Yeasteye Captain Cellmerica Black Cellow