move styles onto element