Defining a repeatable rule in CSS -


i have website that's main body full of elements positioned absolute within relative parent container (in order control positioning of each element). there 3 stylesheets, each 1 parameters max , min size of users screen, can displayed on phones, normal screens, , huge screens. each element has 6 defined classes (smallleft1, smalltop3, normalleft3, normaltop1, largeleft3, largetop1 example) provide coordinate data whichever screen size. but, method requires defining elemental positions (only top ones, left doesn't ever go 2 on small, 4 on normal, or 6 on large).

the top defined each class increments in 216px jumps each time, rather having 3 stylesheets, each 1 defining potential tops, there way define 1 class (probably 1 each stylesheet) can match first part of class name, , take second part argument multiplier?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -