Page 1 of 1

Screen width in IE

Posted: Sat Sep 30, 2006 6:29 am
by Gregor
Hello,

CMSMS works great. One question however, when I make the screen smaller in firefox, the content resizes with the screen. This does not happen when viewing the site with IE. Is there a way to solve this?

Thanks for your help!

Re: Screen width in IE

Posted: Sat Sep 30, 2006 8:42 am
by Dr.CSS
If you are talking about the default install pages there should be a little script call in the top for it to work with IE...

{literal}

=b){nw=b+"px";}if(w



#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}


{/literal}

Re: Screen width in IE

Posted: Mon Oct 02, 2006 6:04 am
by Gregor
Thanks Mark. I'm not sure if I understand it correctly. In my Global Content Block, I see {literal} {/literal}. No code between the literal's. FYI, I run version 0.13 In the template "CSSMenu Vert 1 col" I see

Code: Select all

<!--[if IE]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
Do I copy your piece of code into the template???

Re: Screen width in IE

Posted: Mon Oct 02, 2006 3:15 pm
by Dr.CSS
In the GCB you see {literal} because the code is only viewable in source mode, in the template it should say {global_content name="Iforgetritenow"} I think it's IEjavascript?

Re: Screen width in IE

Posted: Mon Oct 02, 2006 4:12 pm
by Gregor
If I look at the source in the GCB, than I see:

Code: Select all

{literal} <__script__ type="text/JavaScript"></__script> <!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
   var nw="auto",w=document.documentElement.clientWidth;
   if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->  

{/literal}
In the template it says:

Code: Select all

{global_content name='JavaScript for IE page width'}

<!-- [if IE] -->
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<!-- [endif] -->
If I resize the screen in IE, than the text is moved to a new line, and if I resize the screen any further, the text is moved belows the lmenu on the left. If you want to have a look for yourself, you can find my site @ www.uisge-beatha.eu