Add title class to css rules