set syle to class