Refactored text-resize css and html