This isn't something that could be done with CSS outside of making the unit a data attribute and reading from that, but either way you'd be adding it with a template.