I need to place two images into top-left and top-right corners of a web page, with an empty space between them that would consume the available space, i.e. if the browser displaying the page is resized, the two images will stay at corners for as long as the browser window width is enough to display them both. If the browser is then resized below this width, a horizontal scrollbar should appear. The basic requirement is that the two images should never overlap, nor should they be rendered below each other.
To illustrate where I am now, here is a stripped-down HTML snippet:
<div class="header">
<img src="left.png">
<img style="float: right;" src="right.png">
</div>
This is enough to place the images at the right positions, but unfortunately they will appear below each other if the browser window is resized so that its width is below the sum of widths of the two images.
CSS-based solution is preferable, of course; I'd avoid using <table>
element if ever possible.