Re-implement resize

There were several issues with using float and %. Changed to use
absolute positioning and width.