Page 1 of 1

More on IE7 w/css menu vert [SOLVED]

Posted: Sun Mar 18, 2007 8:10 pm
by sieg23
Ok - so I'm having the classic problem with whitespace between menu parents and children causing the lists to disappear when you try to move down them, plus now, smarty errors.

http://www.chowmaineguide.com

I'm running CMS 1.04 with the modified stock css vertical menu.

I added/modified my main template header thus:

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


{/literal}









#primary-nav li {margin-bottom: -3px;}
#primary-nav li:hover {margin-bottom:-3px;}

... the Navigation: CSSMenu - Vertical stylesheet already had several IE7 hacks commented, but I added the "min-height:0" portions in the bottom section as per a December 'whitespace fix' thread, thus:
/* IE Hack, will cause the css to not validate */

#primary-nav li, #primary-nav li.menuparenth { _float: left; _height: 1%; min-height:0;}  /*03-18*/
#primary-nav li a { _height: 1%; min-height:0;} /*03-18*/
Now I'm getting smarty errors referring to the new IE7 template js code on all Firefox and IE.
string(130) "Smarty error: [in template:15 line 51]: syntax error: unrecognized tag: margin-bottom: -3px; (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:15 line 51]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)" string(129) "Smarty error: [in template:15 line 52]: syntax error: unrecognized tag: margin-bottom:-3px; (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:15 line 52]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)"

This goes away after refresh, but the whitespace issue remains.

I'm finding lots of info about this, but nothing is quite working to solve it.

Thanks very much for any help!  ~S

Re: More on IE7 w/css menu vert

Posted: Sun Mar 18, 2007 9:08 pm
by kermit
do you have your javascript and style stuff (in your templates) inside of {literal}{/literal}  so smarty won't try to parse it?

example from a default template:

{literal}

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



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


{/literal}

Re: More on IE7 w/css menu vert

Posted: Sun Mar 18, 2007 10:15 pm
by sieg23
BINGO!

I never understood what that tag was for.

Thank you so so much!

~S

Re: More on IE7 w/css menu vert

Posted: Tue Feb 12, 2008 1:26 pm
by Dongo
Hey there!

I have this whitespace problem too, and literal thing didnt help me, anyone could help?
My code similar to what just kermit posted.

MODIFIED: found the solution in the forum , topic : CSSMenu Vertical problem
                additional lines by RonnyK made my site work correctly!

Thanks! :)

Re: More on IE7 w/css menu vert

Posted: Tue Feb 12, 2008 4:31 pm
by tonypb
Dongo wrote: MODIFIED: found the solution in the forum , topic : CSSMenu Vertical problem
                additional lines by RonnyK made my site work correctly!
what is the link to this? i am having the same problem in IE