Say "Hello!"

  • This field is for validation purposes and should be left unchanged.

Get height of content to make sidebar full height


1
2
3
4
5
6
7
$(document).ready(function (){                
    $height = $(".entry-content").height();  //get height of content
    if ( $height > 450 ) {
        $('aside').css({'height': $height + 'px'});
        }
    //console.log($height + 'px');
});

Back to Snippets Follow me on GitHub

Ashley Cameron logo
Blog