Page width with javascript, how?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Jorem

Page width with javascript, how?

Post by Jorem »

I have a problem with the width of the page in IE . In all the other browsers it is fixed in CSS, but IE doesn't work with that so the page looks very width.

I found out after searching this forum that I need to add some javascript to fix the width in IE.

My question is now: How do I do that? Where do I have to put the javascript, and what javascript?

Thanks for your help. For the rest everything works great :) .
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Page width with javascript, how?

Post by Dr.CSS »

default install templates have this in them

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

if you goto Content > Global Content Blocks you will see this one, if you clik on it you will see {literal}  {/literal}, you have to clik Source button then you will see the 'code', you may have to change the (P7_MinMaxW(720,950));} so it works with your sizes :.
Jorem

Re: Page width with javascript, how?

Post by Jorem »

Thanks you very much. Now everything works great :)
Locked

Return to “Layout and Design (CSS & HTML)”