CSS Styling in Dashboard 2.0

Do you mean you are unable to set the class in the node config, or that the class does not appear when you inspect it in the browser?

What versions of node red and the dashboard are you using?

Can you try a different browser?