|
<script> $(document).ready(function() { $('.wiki-content .contentLayout2 .confluence-embedded-file-wrapper img').css('width', '100%'); var c = $('.wiki-content .contentLayout2 .confluence-embedded-file-wrapper'); c.css({ 'position' : 'absolute', 'top' : '40px', 'left' : '0', 'width' : '100%', 'overflow' : 'hidden' }); $('.wiki-content .contentLayout2').css('margin-top', (c.height() + 20) + 'px'); }); $(window).resize(function() { var h = $('.wiki-content .contentLayout2 .confluence-embedded-file-wrapper').height(); $('.wiki-content .contentLayout2').css('margin-top', (h + 20) + 'px'); }); </script> |