moving inline custom style into class