Difference between revisions of "Team:Tuebingen/Art and Design"
Line 47: | Line 47: | ||
function createCarousel() { | function createCarousel() { | ||
var carousel = document.getElementById('carousel'); | var carousel = document.getElementById('carousel'); | ||
− | carousel.style.cssText = 'width:100%;height: | + | carousel.style.cssText = 'width:100%;height:10vw;text-align:center;overflow:hidden;'; |
for (var i=0;i<imgURLs.length;i++) { | for (var i=0;i<imgURLs.length;i++) { | ||
var img = document.createElement('img'); | var img = document.createElement('img'); | ||
− | img.style.height = ' | + | img.style.height = '10vw;' |
− | img.style.height = ' | + | img.style.height = '10vw'; |
img.style.cssText = 'float:left;'; | img.style.cssText = 'float:left;'; | ||
img.src = imgURLs[i]; | img.src = imgURLs[i]; |
Revision as of 14:10, 18 September 2015
<
>
Supercellfie Ironcell Culk Thor Cellson Yeasteye Captain Cellmerica Black Cellow