add css for li elements to templates