I have two divs that I want to put side by side in a container. The problem I am having is that the left div has a veriable size depending on the content and the right div should use all available space.
<style>
div.left {
    display: inline-block;
    outline-width: 0;
    background-color: yellow;
    padding-right: 5px;
}
div.right{
    display: inline-block;
    max-width: 100%;
    outline-width: 0;
    background-color: green;
}
.container{
    background:black;    
    width:450px;
}
</style>
<div class="container">
    <div class="left">
        LEFT
    </div>
    <div class="right">
        RIGHT
    </div>
</div>
I tried with flex, table-cell, ... - almost everything. What am I missing?
 
    