Fixed issues with css max-height/width