add styles to categories' spans