My question is much like this one:
Two divs, one fixed width, the other, the rest
but with some caveats that make the answer a bit different.
Without using javascript, is there a way to have two contained divs, one floating right at a locked width, the other stuck to the bottom of the container at a set height and taking the rest of the available width? The hard part here is everything above and around the two divs must remain clickable and associated with the parent div.
Here is the fiddle: http://jsfiddle.net/W7Ljd/
Here is the code:
.box {
position: relative;
width: 200px;
height: 200px;
padding: 5px;
background:lightcoral;
}
.left {
position: absolute; /* ------ Get Rid of these lines */
bottom: 5px; /* ------ */
width: 80px; /* ------ */
overflow:hidden;
height: 20px;
background: lightyellow; /* Take up rest of space */
}
.right {
float: right;
width: 100px;
height: 100%;
background: lightblue;
}
The red area needs to be the accessible parent div, the yellow needs to be at the bottom taking up the rest of the width should the window be resized.
Thanks for the consideration, folks.