I have two DIVs, .sidebar and .content and I want to set .sidebar to keep the same height with the .content.
I\'ve tried the f
$(window).resize(function(){
var height = $('.child').height();
$('.parent').height(height);
})
$(window).resize(); //on page load
.parent{
background:#ccc;
display:inline-block;
width:100%;
min-height:100px;
}
.child{
background:red;
width:50%;
position:absolute;
}
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute
hellow i am floating as absolute