Page 2 of 2

Re: iexplorer 7 and cmsmadesimple

Posted: Sun Dec 03, 2006 2:16 am
by tt5001
Greg wrote:

Code: Select all

<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<!-- Type the title of your site here -->
<title>{site_title}</title>

{metadata}
{stylesheet}
<!--[if IE 7]>
<style type="text/css">
#primary-nav li {margin-bottom: -3px;}
#primary-nav li:hover {margin-bottom:-3px;}
</style>
<![endif]-->
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}

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

</head>
Thanks, but getting a smarty error.

Re: iexplorer 7 and cmsmadesimple

Posted: Sun Dec 03, 2006 10:33 am
by Dr.CSS
Error saying what?...

Re: iexplorer 7 and cmsmadesimple

Posted: Sun Dec 03, 2006 3:33 pm
by tt5001
Fatal error: Smarty error: [in template:4 line 14]: syntax error: unrecognized tag: margin-bottom: -3px; (Smarty_Compiler.class.php, line 436) in /home/www/pariasuites.com/lib/smarty/Smarty.class.php on line 1095


Will check the template.

Re: iexplorer 7 and cmsmadesimple

Posted: Sun Dec 03, 2006 8:04 pm
by Dr.CSS
Check the Global Content Block for {global_content name='JavaScript for IE page width'} and make one for the IE7 styles you need then call it in the head like the other one...

HTH

Re: iexplorer 7 and cmsmadesimple

Posted: Mon Dec 04, 2006 1:29 am
by tt5001
Thanks, but quite lost  ???

Re: iexplorer 7 and cmsmadesimple

Posted: Mon Dec 04, 2006 12:48 pm
by Greg
I loaded your template into my CMSMS. Your are correct - it produces a number of smarty errors.
Where did this template come from? It has a number of smarty tags that are incorrect. Also I notice you are not using the CSSMenu in this template so the 'fix' above does not apply.

If you give us an idea of what you want the page to look like, maybe we can help with the template.

Re: iexplorer 7 and cmsmadesimple

Posted: Mon Dec 04, 2006 1:41 pm
by tt5001
I am trying to modify the site that someone else created.  The site is pariasuites.com and only when I upgraded to IE7 and viewed the site I noticed that the footer background (blue) as well as the footer text all moved up.  I have done a temporary "fix" by changing the background color of the footer to white so that it does not block out the text.  You can see the difference in FF with the footer in the correct place.

Re: iexplorer 7 and cmsmadesimple

Posted: Tue Dec 05, 2006 12:51 pm
by Greg
In the stylesheet where you added

Code: Select all

div#footer {
		color: #385C72; /*fff;*/
		background-color: #fff; /*385C72; BBB Change*/
		}
add

Code: Select all

clear: both;
height: 20px; (adjust to what you want)
width: 100%;

Re: iexplorer 7 and cmsmadesimple

Posted: Tue Dec 05, 2006 1:36 pm
by tt5001
Many thanks.....that dit it!  :)

Re: iexplorer 7 and cmsmadesimple

Posted: Mon Dec 18, 2006 9:01 pm
by peugeot-304
Just installed IE7 and needed this trick. It's working fine.

Great help guys!!!!

Thanks Dieter