More on IE7 w/css menu vert [SOLVED]

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
sieg23

More on IE7 w/css menu vert [SOLVED]

Post 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
Last edited by sieg23 on Sun Mar 18, 2007 10:15 pm, edited 1 time in total.
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: More on IE7 w/css menu vert

Post 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}
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
sieg23

Re: More on IE7 w/css menu vert

Post by sieg23 »

BINGO!

I never understood what that tag was for.

Thank you so so much!

~S
Dongo
New Member
New Member
Posts: 6
Joined: Fri Feb 08, 2008 9:42 am

Re: More on IE7 w/css menu vert

Post 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! :)
Last edited by Dongo on Tue Feb 12, 2008 2:04 pm, edited 1 time in total.
User avatar
tonypb
Forum Members
Forum Members
Posts: 104
Joined: Tue Nov 20, 2007 12:16 am

Re: More on IE7 w/css menu vert

Post 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
patino-burch design
Anthony Patino-Burch
Locked

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