Add support for using CSS classes instead of using inline styles.