make custom css more robust