Team:UCLondon/Templates/Team-Style
From 2012e.igem.org
(Difference between revisions)
Line 116: | Line 116: | ||
$('#shadow').center(); | $('#shadow').center(); | ||
var description = $(this).children().children('.description'); | var description = $(this).children().children('.description'); | ||
+ | |||
+ | |||
var input = "<div style='float:left; width:40%; margin:auto; color:rgb(117, 117, 117) !important;'>" + $(this).children().children('a').html() + $(this).children().children('.position').html() + "</div>"; | var input = "<div style='float:left; width:40%; margin:auto; color:rgb(117, 117, 117) !important;'>" + $(this).children().children('a').html() + $(this).children().children('.position').html() + "</div>"; | ||
input += "<div style='overflow:auto; width:58%; height:90%; float:right;'><p>"+ description.html() + "</p></div>"; | input += "<div style='overflow:auto; width:58%; height:90%; float:right;'><p>"+ description.html() + "</p></div>"; | ||
Line 122: | Line 124: | ||
$(this).children('#box-content').html(input); | $(this).children('#box-content').html(input); | ||
}); | }); | ||
+ | |||
+ | $('#box-content h3').css( { 'margin': 'auto' }); | ||
return false; | return false; |
Revision as of 18:43, 18 September 2012