I have two floated divs which appear side by side as they should, however I want to have div 1 stretch to the full width of its container when div 2 is not present. I've tried doing this by removing the width of div 1 (while leaving the width of div 2) however this breaks the float and pushes div two to a new line.
Can anyone advise me how I can achieve a div which auto-stretches to the full width of the container when the second div is not present?