I have an html page with divs that have id(s) of the form s1, s2 and so on.
You can' just add a class to each of your DIVs and apply the rule to the class in this way:
HTML:
... ...
CSS:
//css .myclass { ... }