Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Goodnight

Get height of content to make sidebar full height

jQuerySnippets

About a 1 minute read

"It is the supreme art of the teacher to awaken joy in creative expression and knowledge."

Albert Einstein


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');
});