css or javascript calculation

css or javascript calculation

Hi all,

in our app, we were first used css media queries for different devices. we had numerous problems, when we fixed for a particular device, it upset the other 2 devices...

then we decided to calculate dynamically the control sizes, this somehow fixes the problem,

but what is the JQM recommended usage ? media query or javascript ?

regards