For my purposes, I need to set the div height as quickly as possible.
Using the document.ready()
event is not fast enough, so I want to set the inline CSS style of the div.
How can achieve something like this?
<div id="map-container" style="height:javascript(getwindowheight)px;">
<div id="map">
</div>
</div>
function getwindowsheight() {
return window.height;
}
Any suggestions?
#map
I used#map, body, html { height: 100%; }
- turns out that's not the case I'll be posting another question soon. – Serg Nov 13 '12 at 19:22