Refactoring the styling and improving the rendering in legacy browsers