iexplorer 7 and cmsmadesimple

General project discussion. NOT for help questions.
tt5001

Re: iexplorer 7 and cmsmadesimple

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: iexplorer 7 and cmsmadesimple

Post by Dr.CSS »

Error saying what?...
tt5001

Re: iexplorer 7 and cmsmadesimple

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: iexplorer 7 and cmsmadesimple

Post 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
tt5001

Re: iexplorer 7 and cmsmadesimple

Post by tt5001 »

Thanks, but quite lost  ???
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: iexplorer 7 and cmsmadesimple

Post 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.
Greg
tt5001

Re: iexplorer 7 and cmsmadesimple

Post 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.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Re: iexplorer 7 and cmsmadesimple

Post 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%;
Greg
tt5001

Re: iexplorer 7 and cmsmadesimple

Post by tt5001 »

Many thanks.....that dit it!  :)
peugeot-304

Re: iexplorer 7 and cmsmadesimple

Post by peugeot-304 »

Just installed IE7 and needed this trick. It's working fine.

Great help guys!!!!

Thanks Dieter
Post Reply

Return to “General Discussion”