Problably it is a silly question (I'm newbie), but I'm developing an app with phonegap and for any device I need to define the height of it. I know that with javascript I can get the size of the screen using:
<script type="text/javascript">
document.write(screen.width+'x'+screen.height);
</script>
and I want to use screen.height value as a variable on my CSS file. With this solved I can define any item related to the height and consequently I will have the exact image on any device... sounds weird?
I tried to google but I didn't found the way to insert js into css or to insert screen.height value inside it.
Does anyone has an idea?
Thanks in advance.