Remove resize and do with inline css