Via Javascript http://jsfiddle.net/D6bMJ/1/ (automatically set the #main height to the #one height)
or CSS, manually define a height for the #main which would be the highest between #one and #two. : http://jsfiddle.net/D6bMJ/2/ (#two has height:100%, so the same height as it's parent).