Add index-based CSS classes to fields.