move inline style to a class