I don't understand why the following example is not working... It only works if I am resizing it once but if I try to resize it again it get's all messed up...
http://jsfiddle.net/JAVWN/1/