convert a DOM style name to a css name