I'm looking for a way to devide my screen perfectly into two divs. One small fixed sized on the left and one with dynamic width on the right.
I didn't figured out how to do this yet. Because the width in percentage is not proportional.
For example: http://jsfiddle.net/acmnU/2/
If you resize the result field or the overall width you see that the green div will not resize in proportion with the screen. If the field gets to small the green div slips under the red one.
what I need is some kind of anchor. So that the green div fill the entire screen without getting to big.
HTML:
<body>
<div id="content">
<div class="left">left</div>
<div class="right">right</div>
</div>
</body>
CSS:
body {
height: 300px;
}
#content {
height: 100%;
}
.left {
float: left;
margin-left: 10px;
background-color: red;
height: 100%;
width: 200px;
}
.right {
float: left;
margin-left: 10px;
background-color: green;
height: 100%;
width: 80%;
}