Cleaning CSS code and adapting HTML markup