I want to resize the height of my pages dynamically, therefore I need to set the height of some markup elements dynamically. I don't want to use Javascript (although I found a nice solution with jquery).
Is there a way to add a textblock like the following to the page header?

<!--[if lt IE 8]>
  <style type="text/css">
      #leftmenu{height:400px;} /*this value should is dynamic */
  </style>
<![endif]-->

whereas the height of #leftmenu is set like this:

public abstract BasePage extends WebPage() {
...
WebClientInfo w = (WebClientInfo)getWebRequestCycle().getClientInfo();
ClientProperties cp = w.getProperties();
int minHeight = cp.getBrowserHeight();
//some imagination now
addToHeader{
      addStyle("#leftmenu", "height", minHeight);
}


Thanks,

Roman




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to