Remove old attributes and move it css