before and after class style