I have a website that's main body is full of elements positioned by absolute
within a relative
parent container (in order to exactly control the positioning of each element). There are 3 stylesheets, each one with parameters for the max and min size of the users screen, so it can properly be displayed on phones, normal screens, and huge screens. Each element has six defined classes (smallLeft1, smallTop3, normalLeft3, normalTop1, largeLeft3, largeTop1 for example) which provide all the coordinate data for whichever screen size. But, this method requires defining all the elemental positions (only the top ones, left doesn't ever go about 2 on small, 4 on normal, or 6 on large).
The top that is defined for each class increments in 216px jumps each time, so rather than having 3 stylesheets, each one defining all the potential tops, is there a way to define one class (probably one for each stylesheet) that can match the first part of the class name, and take the second part as an argument for a multiplier?