Apply CSS class to an Element