Possible Duplicate:
Using Javascript in CSS
I am developing an android app from Phonegap. I need to set the width of a container relatively: find the width of a container and set width of the required container in proportion to it. I can do this easily in JavaScript. But i need to do this in CSS code, is there any simple way of doing this?