Ashley Cameron Design

Ashley Cameron Design

Shop the Creative Design Market

Good afternoon

Get height of content to make sidebar full height

jQuerySnippets

About a 1 minute read

"The passion that we seek is within every experience; we just have to find it."

Ashley N Cameron


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