My clear expected output is like this: outer and inner div plan
Outer div has fixed width and height but inner needs to have dynamic 100% related to other inners. Tried many possibilities with position absolute, relative width, height auto and 100% but couldn't achieve the exact result. I'm sure that there is a simple and clean way to do it with CSS3.
Div side:
<div class="window">
<div class="titlebar">
<div class="title">Text</div>
</div>
<div class="scroll_right"></div>
<div class="window_inner"></div>
<div class="scroll_bottom"></div>
</div>
Style side:
.window {
width: 400px;
height: 400px;
background-color: yellow;
position: relative;
}
.titlebar {
position: absolute;
top: 0;
background-color: black;
color: white;
height: 20px;
width: 100%;
}
.scroll_right {
position: absolute;
float: right;
width: 20px;
height: 100%;
background-color: blue;
}
.window_inner {
background-color: red;
width: 100%;
height: 100%;
float: right;
position: absolute;
}
.scroll_bottom {
background-color: black;
position: absolute;
bottom: 0;
height: 20px;
width: 100%;
}