Difference between revisions of "Team:Cambridge-JIC/TestHome"
Line 12: | Line 12: | ||
#sidebar { | #sidebar { | ||
position:fixed; | position:fixed; | ||
− | top: | + | top:20%; |
− | + | right:20px; | |
width: 23px; | width: 23px; | ||
z-index:1; | z-index:1; | ||
Line 44: | Line 44: | ||
$(window).on("resize", function(){ | $(window).on("resize", function(){ | ||
− | $("#sidebar").offset({ | + | $("#sidebar").offset({right: $(".cam-container section:first-of-type div").offset().right - 30}) |
if($(".navbar-collapse").is(":visible")) { | if($(".navbar-collapse").is(":visible")) { |
Revision as of 02:16, 4 August 2015