I have DIV ids in an application that are generated dynamically, with an ID at the end. For example: <div id="vote_score_72">, <div id="vote_score_73">, <div id="vote_score_74"> and so on.
How can I write that id in the CSS file so I can apply a style to it?
Further to the suggestion that you should use classes for this functionality (and you should), you can, instead, use the attribute-value-begins-with selector (this may not be the formal name):
JS Fiddle demo.
Edited to add a link to the Quirksmode.org‘s compatibility tables for advanced attribute selectors.
References: