Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Good morning

Get height of content to make sidebar full height

jQuerySnippets

About a 1 minute read

"Not until we are lost do we begin to understand ourselves."

Henry David Thoreau


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