As you seem to already have the ids set, you could use:
content: attr(id); text-transform: capitalize;