I'm developing a web app and i want to auto resize three columns divs filled with a background image in order to make them fill the whole page whenever i zoom in or out with ctrl- and + exactly like jsfiddle.net, here is what i have written to make this effect but it failed:
HTML:
<div id="three_columns_container">
<div id="first-column">...</div>
<div id="second-column">...</div>
<div id="third-column">...</div>
</div>
CSS:
#first-column{
background:('slice.png');
width: 15%;
height: 97%;
}
#second-column{
background:('slice.png');
width: 15%;
height: 97%;
}
#third-column{
background:('slice.png');
width: 70%;
height: 97%;
}
JS:
$(window).resize(function(){
$("#three_columns_container").height() = $(window).height * 0.97;
$("#three_columns_container").width() = $(window).width* 0.97;
});
this link may help solving the problem but it doesn't make the exact effect link
i was wondering if anybody can help me with this