Here's the HTML code snippet:
<div id="left" style="background: red; display: inline-block; float: left">
aaaa<br />
aaaaa
</div>
<div id="right" style="background: yellow; float: left"></div>
My goal is to make #right fill the remaining space that #left isn't using on the screen. I have attempted to achieve this using jQuery:
$('#left').height($(window).height());
$('#right').height($(window).height());
$('#right').width($(window).width() - $('#left').outerWidth());
However, I am encountering an issue as it doesn't seem to be working as intended. Feel free to check out the jsfiddle for reference: http://jsfiddle.net/UeLMA/1/
Do you have any suggestions or solutions?