Fix invalid CSS and deprecation warning