
I want to make sure that online div users are always 200 pixels in size, and the chat window to the left of it is resized to its maximum size, and it can occupy all the free space.
So, for example, when you resize the window, the chat window will decrease, but the Online Users window will remain at 200 pixels, something like a liquid layout.
left div (chat window): entry_window
right div (online users): online_window
#entry_window{
border: 2px solid #D4D4D4;
float: left;
width: 75%;
height: 100%;
margin: 1%;
overflow: scroll;
overflow-x: hidden;
}
#online_window{
border: 2px solid #D4D4D4;
margin: 1%;
margin-left: 0%;
display: inline-block; float: left;
background-color: white;
width: 21.5%;
height: 100%;
}
oh and by the way: for the vertical size, I made this function to make it as high as possible without violating the bottom.
function autoscale(){
var v = window.innerHeight - 170;
document.getElementById("entry_window").style.height= v+"px";
document.getElementById("online_window").style.height= v+"px";
}